HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   IP server popup unwanted domain (http://www.howtoforge.com/forums/showthread.php?t=588)

Hellbound 16th September 2005 20:11

IP server popup unwanted domain
 
hi guys,
I've setup couple of website on my server but if I type the server ip in browser, it will popup the first domain sorted alphabetically, which I want to change that to my server homepage.

how?

thanks

till 16th September 2005 20:32

Quote:

Originally Posted by Hellbound
hi guys,
I've setup couple of website on my server but if I type the server ip in browser, it will popup the first domain sorted alphabetically, which I want to change that to my server homepage.

how?

When you have no matching name based vhost, apache will show the first site it finds for the doamin. To have a global default for this case, you can add a default vhost to your httpd.conf before the line:
Include /etc/apache/vhosts/Vhosts_ispconfig.conf:

<VirtualHost 192.168.0.1>
ServerAdmin webmaster@yourdomain.com
DocumentRoot /path/to/your/company/website/
</VirtualHost>

Dont forget to change the IP, emailaddress and path :D

Hellbound 16th September 2005 20:53

thanks alot
that did the job.


All times are GMT +2. The time now is 11:37.

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