When you set up a new domain you have to write a new virtual host to httpd.conf… then you have to restart the server… Is their a way to do this without the restart. Surely a big ISP doesn’t restart apache every time a new domain is added.
@ScleppelFeb 07.2006 — #[URL=http://httpd.apache.org/docs/1.3/vhosts/mass.html]Dynamically configured mass virtual hosting[/URL] Adding virtual hosts is simply a matter of creating the appropriate directories in the filesystem and entries in the DNS - you don't need to reconfigure or restart Apache.[/QUOTE]
@bokehauthorFeb 08.2006 — #Is it possible to do it the other way around? i.e. [B]domain.com[/B] and [B]www.domain.com[/B] mapped to /usr/local/apache/vhosts/[B]www.[/B]domain.com
While [B]subdomain.domain.com[/B] is still mapped to /usr/local/apache/vhosts/[B]subdomain.[/B]domain.com
@cbrookesFeb 08.2006 — #If you use %-3+ instead then it will solve the second part of the question. To add the 'www' if it is missing is more tricky and you will probably need to use the url rewriting for that (mod_rewrite). A simple approach would be to define a redirect for domain.com to www.domain.com ... but I'm not necessarily suggesting that this is the best approach (getting a bit out of my depth here).
@bokehauthorFeb 08.2006 — #[B]%-2+[/B] --- [B]%-3+[/B] --- [B]%-1+[/B] --- None of these work at all! [B]%0[/B] does work so I know the path is good! Any ideas?
@bokehauthorFeb 08.2006 — #[B]-2+[/B] the penultimate and all preceding parts[/QUOTE] That means [B]domain.com[/B] maps to [B]/domain[/B] and [B]www.domain.com[/B] maps to [B]/www.domain[/B] Thats not ignoring the [B]www.[/B]