Created
May 12, 2016 09:05
-
-
Save fnkr/f965de82e6326eab4fbbb797d1dce0d3 to your computer and use it in GitHub Desktop.
Nginx configuration for Kirby A) in domain's root directory (e.g. example.com) B) in subdirectory named /kirbycms/ (e.g. example.com/kirbycms/).
This file contains 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
# e.g. for example.com/kirbycms/ | |
location /kirbycms/ { | |
if (!-e $request_filename) { | |
rewrite ^/kirbycms/(.*)$ /kirbycms/index.php last; | |
break; | |
} | |
} |
This file contains 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
# e.g. for example.com | |
location / { | |
if (!-e $request_filename) { | |
rewrite ^/(.*)$ /index.php last; | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment