22 lines
494 B
Nginx Configuration File
22 lines
494 B
Nginx Configuration File
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
|
location __PATH__/ {
|
|
|
|
# Path to source
|
|
alias __INSTALL_DIR__/;
|
|
|
|
index index.html;
|
|
|
|
# allowed subnets
|
|
deny all;
|
|
|
|
location ~ \.php {
|
|
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
|
include fastcgi_params;
|
|
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
|
|
}
|
|
|
|
# Include SSOWAT user panel
|
|
include conf.d/yunohost_panel.conf.inc;
|
|
}
|