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=25)
-   -   Disabled Websites - Redirected (http://www.howtoforge.com/forums/showthread.php?t=58562)

reason8 5th September 2012 21:23

Disabled Websites - Redirected
 
Hello and good afternoon.

I recently disabled some websites but noticed the sites are being redirected to other websites that I am hosting.

Not quite sure why this is happening.

Background: I am running openSUSE 11.0, using dynamic DNS, dns is configured with the Dynamic DNS Hosting service, some ISPConfig sites are configured with DNS Zones (via ISPConfig) while others are not (does this matter)?

Any help would be much appreciated.

Thanks!

till 6th September 2012 09:08

Apache shows the first vhost in alphabetical order for a IP address if there is no vhsot for a given domain. So what you describe is the normal behaviour of the apache webserver when it does not find a site because you disabled it.

To redirect the requests to a specific site, you have to create a default vhost that catches these requests.

Create a new website with this domain name:

000default.tld

and select the IP address that it shall work for (the Ip that the other sites use). Now all requests of disabled sites will go to this vhost instead of a vhost of a different customer.

reason8 14th September 2012 23:26

Disabled Websites - Redirected
 
Works!

Thanks a bunch!! :)


All times are GMT +2. The time now is 21:48.

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