18 lines
466 B
Nginx Configuration File
18 lines
466 B
Nginx Configuration File
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
|
location __PATH__/ {
|
|
|
|
# Path to source
|
|
root __INSTALL_DIR__/public;
|
|
|
|
index index.php;
|
|
|
|
# Common parameter to increase upload size limit in conjunction with dedicated PHP-FPM file
|
|
client_max_body_size 250M;
|
|
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
|
|
location ~ [^/]\.php(/|$) {
|
|
fastcgi_pass unix:/var/run/php/php__PHP_VERSION__-fpm-__APP__.sock;
|
|
include fastcgi_params_no_auth;
|
|
}
|
|
}
|