logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache 2.4 Only Serving Default Host "Externally"
Author
club128



Joined: 16 Apr 2016
Posts: 3
Location: United States

PostPosted: Sat 16 Apr '16 14:59    Post subject: Apache 2.4 Only Serving Default Host "Externally" Reply with quote

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

PostPosted: Mon 18 Apr '16 11:38    Post subject: Reply with quote

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

PostPosted: Mon 18 Apr '16 17:01    Post subject: Reply with quote

Thank you for your reply.

At the moment, I do not have the Listen set for either (maybe this is the problem? - I simply followed the online tutorial at https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts). I am using name-based vhosts as I only have one IP address (and noip hostname pointing to that dynamic IP).

Thanks again,
John
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Sun 24 Apr '16 17:49    Post subject: Reply with quote

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

PostPosted: Sun 24 Apr '16 19:48    Post subject: Reply with quote

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


Reply to topic   Topic: Apache 2.4 Only Serving Default Host "Externally" View previous topic :: View next topic
Post new topic   Forum Index -> Apache