try to fix nging
This commit is contained in:
+3
-3
@@ -5,10 +5,10 @@ location ^~ __PATH__/ {
|
|||||||
# Path to source
|
# Path to source
|
||||||
alias __FINALPATH__/public/;
|
alias __FINALPATH__/public/;
|
||||||
|
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ index.php?q=;
|
||||||
|
|
||||||
if (!-e $request_filename) {
|
if (!-e $request_filename) {
|
||||||
rewrite ^(.+)$ /index.php?q= last;
|
rewrite ^(.+)$ __PATH__/index.php?q= last;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add headers to serve security related headers
|
# Add headers to serve security related headers
|
||||||
@@ -52,7 +52,7 @@ location ^~ __PATH__/ {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(?:png|html|ttf|ico|jpg|jpeg|bcmap)$ {
|
location ~* \.(?:png|html|ttf|ico|jpg|jpeg|bcmap)$ {
|
||||||
try_files $uri __FINALPATH__/index.php$request_uri;
|
try_files $uri __FINALPATH__/public/index.php$request_uri;
|
||||||
# Optional: Don't log access to other assets
|
# Optional: Don't log access to other assets
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user