Heavy handed removal of if block, this is not related to try_files addition

This commit is contained in:
Peter Rhoades 2013-07-05 15:46:53 +01:00 committed by Peter Rhoades
parent ea7e1d5cdc
commit 38e7cc2194

View file

@ -11,6 +11,11 @@ server {
client_max_body_size 50M;
error_page 500 502 503 504 /50x.html;
if ($host ~* "www") {
rewrite ^(.*)$ http://<%= @server_name %>$1 permanent;
break;
}
location = /50x.html {
root html;
}