Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache 2.4 Only Serving Default Host "Externally" |
|
Author |
|
club128
Joined: 16 Apr 2016 Posts: 3 Location: United States
|
Posted: Sat 16 Apr '16 14:59 Post subject: Apache 2.4 Only Serving Default Host "Externally" |
|
|
I am at an impasse with a clean install of a web server using Apache 2.4.7 installed on Ubuntu 14.04.4 LTS. I have followed very helpful tutorials that show how to configure multiple virutal hosts via copying the 000-default.conf to example.com.conf / test.com.conf and setting those parameters correctly. In fact, when I set my /etc/hosts ("internal") to point to my (dynamic) IP, the behavior is correct, i.e., I am able to reach both of the virtual host's websites as expected. However, because I have a dynamic IP, I have a free account at no-ip.com that links the IP to a hostname (example.ddns.net) and when I use that phrase in the /etc/hosts, I only see my default virtual host internally.
More importantly, when I check "externally" to see what outside users see, I only see my default virtual host no matter how I define my IP (either by number or by hostname). I have the domain names parked at GoDaddy and want to forward each to my hostname ultimately so that is the goal.
If there are any checks/test one can suggest to better diagnose the problem, I would be happy to run them and report back. If I was unclear in my description of the problem in any way, please let me know and I will clarify (admittedly, this is my first web server install). Thank you in advance for any guidance the collective wisdom of this forum can provide!
Cheers,
John |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 18 Apr '16 11:38 Post subject: |
|
|
What is your Listen set to?
Do you use ip based or name based vhosts? |
|
Back to top |
|
club128
Joined: 16 Apr 2016 Posts: 3 Location: United States
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Sun 24 Apr '16 17:49 Post subject: |
|
|
What do you get if you open the internal IP from that server. Nothing? |
|
Back to top |
|
club128
Joined: 16 Apr 2016 Posts: 3 Location: United States
|
Posted: Sun 24 Apr '16 19:48 Post subject: |
|
|
Excuse my ignorance but I'm not positive what you mean by internal IP. If you mean the IP I've set for that server on my network (e.g., 192.168.xxx.xxx) then I can launch that IP internally and I see my default webpage.
All of the paths I've tried always show my default webpage. Is there a diagnostic I can try that would show a failed name resolution that then reverts back to the default because all else has failed? This seems to be the behavior. If I need to post code snippets, just let me know.
Thanks again,
John |
|
Back to top |
|
|
|
|
|
|