Browse Source

add sef configuration example

main
ghost 1 year ago
parent
commit
7d7629488a
  1. 6
      example/environment/nginx

6
example/environment/nginx

@ -11,7 +11,7 @@ server {
server_name _; server_name _;
location / { location / {
try_files $uri $uri/ =404; try_files $uri $uri/ =404 @yggtracker;
} }
location ~ \.php$ { location ~ \.php$ {
@ -22,4 +22,8 @@ server {
location ~ /\. { location ~ /\. {
deny all; deny all;
} }
location @yggtracker {
rewrite ^/(.*)$ /index.php?$1 last;
}
} }
Loading…
Cancel
Save