mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-29 01:52:24 +03:00
Update the nginx configuration for nested sub-directory support
This commit is contained in:
parent
d084ad933a
commit
7f2504fe4c
1 changed files with 3 additions and 6 deletions
|
@ -12,15 +12,12 @@ server {
|
|||
index index.php;
|
||||
|
||||
# try to serve file directly, fallback to index.php
|
||||
|
||||
location / {
|
||||
try_files $uri /index.php$is_args$args;
|
||||
try_files $uri $uri/ /index.php$is_args$args =404;
|
||||
}
|
||||
|
||||
if (!-e $request_filename) {
|
||||
rewrite ^.*$ /index.php last;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
location ~ ^.+.php {
|
||||
fastcgi_pass php-fpm:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
|
|
Loading…
Reference in a new issue