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

43 lines
1 KiB
Nginx Configuration File
Raw Normal View History

2017-01-18 11:22:49 +01:00
location ^~ YNH_WWW_PATH {
2017-02-01 20:15:19 +01:00
alias YNH_WWW_ALIASwww/ ;
2017-01-18 11:22:49 +01:00
try_files $uri $uri/ /YNH_WWW_APP/index.php?$query_string;
index /YNH_WWW_APP/index.php;
location ~* \.php$ {
2017-02-01 20:15:19 +01:00
fastcgi_split_path_info ^(.+\.php)(/.+)$;
2017-01-18 11:22:49 +01:00
fastcgi_pass 127.0.0.1:9000;
fastcgi_index yellow.php;
2017-02-01 20:15:19 +01:00
include fastcgi_params;
2017-01-18 11:22:49 +01:00
}
location ~* \.html$ {
expires -1;
}
location ~* \.(css|js|gif|jpe?g|png)$ {
expires 1M;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
2017-01-18 18:29:38 +01:00
location YNH_WWW_PATH/cache {
2017-01-18 11:22:49 +01:00
rewrite ^(.*)$ /error break;
}
2017-01-18 18:29:38 +01:00
location YNH_WWW_PATH/content {
2017-01-18 11:22:49 +01:00
rewrite ^(.*)$ /error break;
}
2017-01-18 18:29:38 +01:00
location YNH_WWW_PATH/ {
2017-01-18 11:22:49 +01:00
if (!-e $request_filename) {
rewrite ^/(.*)$ /yellow.php last;
break;
}
}
2017-01-18 18:29:38 +01:00
location YNH_WWW_PATH/system {
2017-01-18 11:22:49 +01:00
rewrite ^(.*)$ /error break;
}
2017-02-01 20:03:20 +01:00
2017-01-18 11:22:49 +01:00
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
2017-02-01 20:03:20 +01:00
2017-01-18 11:22:49 +01:00
}