Fix: nginx - add rule to disable url-rewriting for the docs
Related to #1603
This commit is contained in:
parent
d8030c8155
commit
2f87bfdc69
2 changed files with 11 additions and 1 deletions
|
@ -65,6 +65,11 @@ http {
|
|||
include fastcgi.conf;
|
||||
}
|
||||
|
||||
location ~ /doc/ {
|
||||
default_type "text/html";
|
||||
try_files $uri $uri/ $uri.html =404;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
# deny access to all other PHP scripts
|
||||
deny all;
|
||||
|
|
|
@ -325,6 +325,11 @@ server {
|
|||
deny all;
|
||||
}
|
||||
|
||||
location ~ /doc/ {
|
||||
default_type "text/html";
|
||||
try_files $uri $uri/ $uri.html =404;
|
||||
}
|
||||
|
||||
location = /favicon.ico {
|
||||
# serve the Shaarli favicon from its custom location
|
||||
alias /var/www/shaarli/images/favicon.ico;
|
||||
|
|
Loading…
Reference in a new issue