apache virtual hosts not working "externally"

jonathanc

Verified User
Joined
Aug 18, 2007
Messages
46
I have a directadmin server running on Amazon's cloud (thanks to help here http://blog.unixy.net/2009/06/running-directadmin-on-amazon-ec2-linux-solved/) and it looks to be functioning OK.... except for a problem with apache.

As a trial I have transferred across a test account from another server and the following site should work... http://staging10.accentikainternet.co.uk

If I use lynx on the command line of the server to connect to http://staging10.accentikainternet.co.uk then I correctly see the page. So the virtual host is working when I connect from the server itself.

But connecting from anywhere else to this domain shows the apache test page. I can't find any errors logged anywhere.

Does anyone have any suggestions on where I could look to see what is going wrong.

Thank you.

Jonathan.
 
Yes IP address should be 79.125.117.45 and browsing to staging10.accentikainternet.co.uk from the command line on the server correctly connects to the vhost/site. On this particular server there is only the one external IP address.
 
Make sure that internally, in DirectAdmin, the domain name is set up on the correct IP#.

I'm not sure if you need the internal IP# or the external IP# set up for the site in the DirectAdmin control panel, but my guess is that you need the internal (NAT) address.

Check your apache logs when you visit the page.

Jeff
 
Hi Jeff

That seems to be doing the trick. I can see my virtual host now by using the internal Amazon address as the IP address for the vhost.

Thank you for your help.

Now I just need to do some homework to understand why that works and if there are any other implications for my set up!

Jonathan
 
Back
Top