Project

General

Profile

Feature #2138

Rewrite document-root for www-prefix

Added by crypt almost 10 years ago. Updated over 3 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
mod_simple_vhost
Target version:
-
Start date:
2009-12-31
Due date:
% Done:

100%

Estimated time:
Missing in 1.5.x:
No

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

mod_simple_vhost.patch (2.96 KB) mod_simple_vhost.patch crypt, 2009-12-31 14:32

Related issues

Related to Feature #2126: lighttpd patchesDuplicate2009-12-28

Actions
#1

Updated by Olaf-van-der-Spek almost 10 years ago

Can't this be done with aliasing?
Seems silly to hard-code this.

#2

Updated by stbuehler almost 10 years ago

  • Target version changed from 1.4.26 to 1.4.27
#3

Updated by nitrox over 9 years ago

  • Target version changed from 1.4.27 to 1.4.28
#4

Updated by stbuehler over 9 years ago

  • Target version changed from 1.4.28 to 1.4.29
#5

Updated by stbuehler over 8 years ago

  • Target version changed from 1.4.29 to 1.4.x

unclean patch; removes/adds strange things.

#6

Updated by stbuehler over 8 years ago

oh, and the correct solution in a config is imho to use http redirection to one case (either with or without www.)

#7

Updated by gstrauss almost 4 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.

#8

Updated by stbuehler over 3 years ago

  • Target version deleted (1.4.x)

Also available in: Atom