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;
}
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;
expires 30d;
add_header Pragma public;
add_header Cache-Control "public, mustrevalidate, proxy-revalidate";
}
location ~ /\.ht {
location = YNH_WWW_PATHprotected {
deny all;
}
location /protected {
deny all;
}
location /uploads/file {
location = YNH_WWW_PATHuploads/file {
deny all;
}