Apache Virtual Hosts and DNS Web Redirection
A friend of mine tried to setup some days ago an Apache web server with two virtual hosts. Unfortunately, he was only able to reach it's first defined virtual host. We found nothing bad in the Apache conf files. So we suspected an Apple conspiracy as the server was launched from an mac mini. But it was not a conspiracy He was using Gandi as registrar, DNS provider and registered what Gandi calls DNS Web Redirection : you hosts your zone on gandi DNS servers, all subdomain (eg www or blog) are recorded as a CNAME of webredir.vip.gandi.net. Then webredir.vip.gandi.net acts as a proxy to the real website of your choice (eg: a Mac Mini behind a Free DSL connection). This method DOES NOT WORK when the target website uses Apache Virtual Hosts. (wrong Host header) Do not use those kind of hacky redirection unless there is no other choice available. Use A and CNAME records, like cestdelamerde does :
The ultimate DNS zone file if you are hosting all you're VH under the same IP...
Comments (0)
:: Trackbacks (0)
|
QuicksearchArchivesCategoriesSyndicate This Blog |
Powered by s9y
