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 index page problem (http://www.howtoforge.com/forums/showthread.php?t=56611)

pawan 19th March 2012 21:08

default index page problem
 
of late, if a site is pointed to ispconfig server(in DNS record of domain registrar), instead of showing the default index page, as it used to show, now I am getting one of the website as default(if no domain is created for the domain in question).

Example:
a new domain example.com is registered and its A record is pointed to the ip of my ISPCONFIG server, but no domain is created in ISPCONFIG control panel than when browsing that domain used to show a default ISPCONFIG index page, but don't know from when, but now it is showing one of the sites from my server.

Your help is needed to address this problem.
Thanks.

till 20th March 2012 07:56

apache will show the first website that it finds for the same IP address in alphabetical order.

The easiest way to get a specific site in the first place that shall be shown when a vhost does not exist is to add a prefix. For example.com:

1) Rename the domain of the website example.com to: 0000-example.com
2) Add example.com as aliasdomain to the website 0000-example.com

The domain 0000-example.com does not have to exist in dns.


All times are GMT +2. The time now is 09:40.

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