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