Created
May 18, 2018 03:25
-
-
Save corerman/155aacc15c5bae2a953c75f2fc8462bc to your computer and use it in GitHub Desktop.
nginx_typecho.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (-f $request_filename/index.html){ | |
rewrite (.*) $1/index.html break; | |
} | |
if (-f $request_filename/index.php){ | |
rewrite (.*) $1/index.php; | |
} | |
if (!-f $request_filename){ | |
rewrite (.*) /index.php; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
针对typecho 配置nginxPathInfo