Handy config snippet: Redirect to canonical server name
jdub at bethesignal.org
Sat Aug 8 04:19:48 MSD 2009
<quote who="Igor Sysoev">
> This snippet is probably handy, however, it will run useless regex for
> every request for www.example.com. Using separate example.com server is
> better for perfomance reason.
Isn't the regex skipped, given that the if statement doesn't match? I do
remember your note about "if" being a bit hacky atm though, so perhaps not.
linux.conf.au 2010: Wellington, NZ http://www.lca2010.org.nz/
"For the record, I've not eaten a lot of babies." - Mark Shuttleworth
More information about the nginx