add nginx rewrite when used in Subdirectory

pull/340/head
qkqpttgf 2021-05-24 17:55:28 +08:00 committed by GitHub
parent 5d7b4deeb7
commit 4de09d0a15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,11 @@ RewriteRule ^(.*) index.php?/$1 [L]
### nginx ### nginx
# rewrite ^/(?!.well-known)(.*)$ /index.php?/$1 last; # rewrite ^/(?!.well-known)(.*)$ /index.php?/$1 last;
# #
### nginx Subdirectory 在子目录中使用
# location /OneManager2/ {
# rewrite ^/(.*)$ /OneManager2/index.php?/$1 last;
# }
#
### caddy ### caddy
# rewrite { # rewrite {
# to index.php?/$1 # to index.php?/$1