diff options
author | Thomas Lange <code@nerdmind.de> | 2021-07-29 00:34:02 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-07-29 00:34:02 +0200 |
commit | 6c20227d7e65d55f8a64e7992f5013ffeab81d0d (patch) | |
tree | 63138284a4598aad0277be9ede70192ca9eaaa30 /.ht-nginx | |
parent | b605b73bbd0eaf314803b6c8c28bff000878d84c (diff) | |
download | blog-6c20227d7e65d55f8a64e7992f5013ffeab81d0d.tar.gz blog-6c20227d7e65d55f8a64e7992f5013ffeab81d0d.tar.xz blog-6c20227d7e65d55f8a64e7992f5013ffeab81d0d.zip |
Update the Apache and nginx configuration files
Diffstat (limited to '.ht-nginx')
-rw-r--r-- | .ht-nginx | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -1,16 +1,22 @@ #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# -# nginx configuration rules [Thomas Lange <code@nerdmind.de>] # +# nginx configuration [Thomas Lange <code@nerdmind.de>] # #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# # # # This file contains the configuration from the Apaches .htaccess file written # # for the nginx high performance web server. Put the content of this file into # # the "server {}" block of your nginx virtual host configuration file. If your # -# blog installation is within a sub directory, you need to adjust this values! # +# blog is installed in a sub directory, you might need to adjust this rules! # +# # +# How to setup PHP and passing requests via FastCGI to PHP-FPM is your job. If # +# you encounter a "403 Forbidden" error on the home page, please make sure you # +# have configured your nginx virtual host to look for an index.php file: # +# # +# index index.php [...]; # # # #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# #=============================================================================== -# Error documents +# Error pages #=============================================================================== error_page 403 /403.php; error_page 404 /404.php; @@ -23,8 +29,6 @@ location ~ ^/(.git|core|theme/([^/]+)/(html|lang)/) { } #=============================================================================== -# Main rules +# Pass requests to index.php #=============================================================================== -if (!-e $request_filename) { - rewrite ^(.*)$ /index.php break; -} +try_files $uri $uri/ /index.php?$args; |