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

32 lines
630 B
Nginx Configuration File
Raw Normal View History

2017-01-18 11:22:49 +01:00
location ^~ YNH_WWW_PATH {
2017-02-01 20:23:39 +01:00
alias YNH_WWW_ALIAS;
2017-02-01 20:46:17 +01:00
root /YNH_WWW_APP/;
index index.html yellow.php;
2017-01-18 11:22:49 +01:00
2017-02-01 20:46:17 +01:00
location /cache {
rewrite ^(.*)$ /error break;
2017-01-18 11:22:49 +01:00
}
2017-02-01 20:46:17 +01:00
location /content {
2017-01-18 11:22:49 +01:00
rewrite ^(.*)$ /error break;
}
2017-02-01 20:46:17 +01:00
location /system {
2017-01-18 11:22:49 +01:00
rewrite ^(.*)$ /error break;
}
2017-02-01 20:46:17 +01:00
location / {
2017-01-18 11:22:49 +01:00
if (!-e $request_filename) {
rewrite ^/(.*)$ /yellow.php last;
break;
}
}
2017-02-01 20:46:17 +01:00
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index yellow.php;
include fastcgi_params;
2017-02-01 20:03:20 +01:00
2017-01-18 11:22:49 +01:00
}