1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yellow_ynh.git synced 2024-09-03 20:36:12 +02:00

Update nginx.conf

This commit is contained in:
frju365 2017-01-18 18:29:38 +01:00 committed by GitHub
parent 3829412390
commit e19f4680f1

View file

@ -32,20 +32,20 @@ location ^~ YNH_WWW_PATH {
add_header Pragma public; add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate"; add_header Cache-Control "public, must-revalidate, proxy-revalidate";
} }
location /cache { location YNH_WWW_PATH/cache {
rewrite ^(.*)$ /error break; rewrite ^(.*)$ /error break;
} }
location /content { location YNH_WWW_PATH/content {
rewrite ^(.*)$ /error break; rewrite ^(.*)$ /error break;
} }
location / { location YNH_WWW_PATH/ {
if (!-e $request_filename) { if (!-e $request_filename) {
rewrite ^/(.*)$ /yellow.php last; rewrite ^/(.*)$ /yellow.php last;
break; break;
} }
} }
location /system { location YNH_WWW_PATH/system {
rewrite ^(.*)$ /error break; rewrite ^(.*)$ /error break;
} }
gzip on; gzip on;