Tag Info

Hot answers tagged

2

In the first example you are messing with all type of quotation marks. Only " ", "programmer’s" quotes, are recognized as quotes in configuration files. You configuration now has curved quotes (”, “) and even Chinese style prime quotation mark (″). You could try this $HTTP["host"] == "example.com" { url.redirect = ( "^/(.*)" => ...


1

You can use a little "trick" like shown on devsite.pl. } else $HTTP["host"] =~ "^something.domain.com$" { # .... } else $HTTP["host"] =~ ".*" { url.redirect-code=404 url.redirect = ( ".*" => "http://domain.com" ) }


1

Seems like you've already got it, just not put together. If you have config options for the other server above, you might need to put that in the else block first. \$SERVER["socket"] == ":8080" { server.document-root = "/www2" } else \$HTTP["remoteip"] != "127.0.0.1" { auth.backend = "htdigest" auth.backend.htdigest.userfile = "$auth_file" ...



Only top voted, non community-wiki answers of a minimum length are eligible