diff options
Diffstat (limited to 'blob/nginx_rewrite_rules')
| -rw-r--r-- | blob/nginx_rewrite_rules | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/blob/nginx_rewrite_rules b/blob/nginx_rewrite_rules index 0b925f3..aded2ed 100644 --- a/blob/nginx_rewrite_rules +++ b/blob/nginx_rewrite_rules @@ -1,7 +1,10 @@ -location /robots.txt {} #stop rewriting the robots.txt +error_page 401 403 404 /httperror.php?e=40x; +error_page 500 502 504 /httperror.php?e=50x; -location /favicon.ico {} -location /static {} +location /robots.txt {} #stop rewriting the robots.txt + +location /favicon.ico {} +location /static {} #location ~* ^/.+[^/].+\.css {} #location ~* ^/.+[^/].+\.png {} @@ -27,7 +30,7 @@ location ~* ^/?user(\?[0-9a-zA-Z]+(=[0-9a-zA-Z]*)?)?$ { rewrite ^/?user(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? /index.php?task=user&arguments=$1 last; } -location ~* \.php(\?[0-9a-zA-Z]+(=[0-9a-zA-Z]*)?)?$ {} #empty block to catch all +#location ~* \.php(\?[0-9a-zA-Z]+(=[0-9a-zA-Z]*)?)?$ {} #empty block to catch all location / { rewrite ^/([0-9a-zA-Z-_]+)/(.*) /index.php?name=$1&folder=$2 last; |
