1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/humhub_ynh.git synced 2024-09-03 19:26:11 +02:00

Attempt at fixing nginx

This commit is contained in:
scith 2016-08-22 00:07:12 +02:00
parent ead29975e4
commit 5839fa3e57

View file

@ -13,22 +13,18 @@ location YNH_WWW_PATH {
fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param SCRIPT_FILENAME $request_filename;
} }
location ~* \.(?:ico|css|js|gif|jpe?g|png|ttf|woff)$ { location ~ ^YNH_WWW_PATH(?:ico|css|js|gif|jpe?g|png|ttf|woff)$ {
access_log off; access_log off;
expires 30d; expires 30d;
add_header Pragma public; add_header Pragma public;
add_header Cache-Control "public, mustrevalidate, proxy-revalidate"; add_header Cache-Control "public, mustrevalidate, proxy-revalidate";
} }
location ~ /\.ht { location = YNH_WWW_PATHprotected {
deny all; deny all;
} }
location /protected { location = YNH_WWW_PATHuploads/file {
deny all;
}
location /uploads/file {
deny all; deny all;
} }