Hey guys,
I'm just transfering my Apache site onto lighty and don't
have enough
knowledge about regular expressions to achieve what the '*'
in Apache
did for me.
First of all, here is what I want to achieve:
kilu.de & www.kilu.de & kilu2.de ... ->
/var/www/site
blog.kilu.de -> /var/www/blog
*.kilu.de (but not matching the urls defined above) ->
/var/www/error
Here is what I got:
$HTTP["host"] =~
"^(kilu.de|www.kilu.de|kilu2.de|www.kilu2.de|kilu
3.de|www.kilu3.de)$"
{
server.document-root = "/var/www/site/"
}
$HTTP["host"] =~ "^blog.kilu.de$" {
server.document-root = "/var/www/blog/"
}
$HTTP["host"] =~ "^( ...???...
)(.kilu.de|.kilu2.de|.kilu3.de)$" {
server.document-root = "/var/www/error/"
}
I do unfortunately do not know what would go into the last
regexp. I
guess I'd have to exclude "blog","www"
and "" (empty) somehow, but how
do I do that?
Any help would be appreciated!
Regards,
Samy
|