Page 1 of 1

Domain returns localhost [SOLVED]

PostPosted: 19. December 2011 15:25
by splash2
Hi All,

I have 2 sites under htdocs that should be accessible via http://domainname/sitea http://domainname/siteb; however, sitea works fine but a request to siteb always returns localhost - needless to say that from anywhere other than my web server this will cause an error.

Can anyone explain this behaviour?

TIA.

Re: Domain returns localhost

PostPosted: 19. December 2011 17:00
by Sharley
splash2 wrote:Can anyone explain this behaviour?
Perhaps we could if we had more details like if you paste in between forum code tags the httpd-vhosts.conf file so we can see just how you configured it and then make recommendations to solve your issue - you can obfuscate your real domain names as they are not important for troubleshooting..

Re: Domain returns localhost

PostPosted: 20. December 2011 11:05
by splash2
Perhaps I should have said 'sub-sites' - I'm not using a httpd-vhosts.conf files as both sites reside in distinct folders under document root.

Re: Domain returns localhost

PostPosted: 21. December 2011 12:27
by splash2
I found a reference to localhost in a config file - changed to domain name and everything now works as expected - Many thanks