HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Default site when IP address used? (http://www.howtoforge.com/forums/showthread.php?t=49310)

anomaly0617 7th October 2010 21:57

Default site when IP address used?
 
Hi all,

I've got a server running Falko's Perfect Server build and ISPConfig3. The server lives behind a firewall (Internal IP 172.18.22.1), and select ports are being forwarded inbound to the server (Internal IP 172.18.22.12).

I've got the server successfully set up to host multiple sites. Having no problems there.

The issue is when someone visits the outside IP address (ie: http://69.81.23.21*) instead of a FQDN. The server appears to display the first site in the list of sites. Is there a way in ISPConfig to specify what site comes up when someone goes to the IP address instead of to a FQDN URL?

* Made up IP

Thanks, in advance!

edge 7th October 2010 22:02

http://www.howtoforge.com/forums/sho...21&postcount=7

anomaly0617 7th October 2010 22:08

Thanks for the quick response, Edge!

I knew of the symbolic link trick, but I didn't want to drop to the console and futz around if there was already a way to do this from the ISPConfig admin interface. Many times I'm left to solve problems that have been created by people trying to circumvent a working system. :)

FYI, I just threw the symlink in place and restarted the httpd daemon, and all is well again.

Thanks!

till 8th October 2010 10:26

When apache is not finding a matching vhost for the combination of IP and domain name, then it uses the first vhost that it finds for the IP address. To redirect these non matching queries to a specific vhost, use a so named default vhost. Please see here:

http://www.howtoforge.com/forums/sho...31&postcount=2


All times are GMT +2. The time now is 01:32.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.