Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (20 sloc) 646 Bytes
# These includes are to be included in most/all server {} declarations.
location /system {
root /srv/sites;
}
location ~* \.(xhtml|xhtm) {
if ($http_user_agent ~* MSIE) {
types { }
default_type text/html
}
}
# This rewrites all the requests to the maintenance.html
# page, if it exists.
# Commenting out, to save a lot of stat() tests on every pageload.
# if (-f $document_root/system/maintenance.html) {
# rewrite ^(.*)$ /system/maintenance.html last;
# break;
# }
error_page 500 502 503 504 /system/500.xhtml;
error_page 404 /system/404.xhtml;
error_page 403 /system/403.xhtml;