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

39 lines
944 B
Nginx Configuration File
Raw Normal View History

2024-02-27 09:13:26 +01:00
location ^__PATH__/cache {
2017-02-01 20:46:17 +01:00
rewrite ^(.*)$ /error break;
2020-11-02 12:24:37 +01:00
}
2017-01-18 11:22:49 +01:00
2024-02-27 09:13:26 +01:00
location ^__PATH__/content {
2017-01-18 11:22:49 +01:00
rewrite ^(.*)$ /error break;
2020-11-02 12:24:37 +01:00
}
2017-01-18 11:22:49 +01:00
2024-02-27 09:13:26 +01:00
location ^__PATH__/system {
2017-01-18 11:22:49 +01:00
rewrite ^(.*)$ /error break;
2020-11-02 12:24:37 +01:00
}
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
2024-02-27 09:13:26 +01:00
location ^__PATH__/ {
2020-11-02 12:24:37 +01:00
alias __INSTALL_DIR__/ ;
2020-11-02 12:24:37 +01:00
index yellow.php;
if (!-e $request_filename) {
2024-02-27 09:13:26 +01:00
rewrite ^(.*)$ ^__PATH__/yellow.php last;
2020-11-02 12:24:37 +01:00
break;
2017-01-18 11:22:49 +01:00
}
2017-02-01 20:46:17 +01:00
2020-11-02 12:24:37 +01:00
try_files $uri $uri/ yellow.php;
location ~ [^/]\.php(/|$) {
2017-02-01 20:46:17 +01:00
fastcgi_split_path_info ^(.+\.php)(/.+)$;
2020-11-02 12:24:37 +01:00
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
2017-02-01 20:46:17 +01:00
fastcgi_index yellow.php;
include fastcgi_params;
2020-11-02 12:24:37 +01:00
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $request_filename;
2017-02-01 20:47:45 +01:00
}
2020-11-02 12:24:37 +01:00
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
2017-01-18 11:22:49 +01:00
}