Feature #2138
closedRewrite document-root for www-prefix
Description
I taught mod_simple_vhost a new config option, which allows to use the same document-root for domains with and without the leading www. Sure, you could use a symlink and allow symlink following by server.follow-symlink, but this new config option is more flexible even if it's not as clean as a permanent redirection. In my special case, I had to handle this redirection in the backend, and so I've added those few lines.
Files
Updated by Olaf-van-der-Spek over 15 years ago
Can't this be done with aliasing?
Seems silly to hard-code this.
Updated by stbuehler about 15 years ago
- Target version changed from 1.4.26 to 1.4.27
Updated by nitrox almost 15 years ago
- Target version changed from 1.4.27 to 1.4.28
Updated by stbuehler over 14 years ago
- Target version changed from 1.4.28 to 1.4.29
Updated by stbuehler almost 14 years ago
- Target version changed from 1.4.29 to 1.4.x
unclean patch; removes/adds strange things.
Updated by stbuehler almost 14 years ago
oh, and the correct solution in a config is imho to use http redirection to one case (either with or without www.)
Updated by gstrauss about 9 years ago
- Status changed from New to Invalid
Thanks for providing the patch which works for you.
However, providing a specific solution for 'www' is not generic, and what you are trying to do can be accomplished within lighttpd already, e.g. with redirection.
Also available in: Atom