aboutsummaryrefslogtreecommitdiffstats
path: root/.ht-nginx
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2024-12-07 20:31:39 +0100
committerThomas Lange <code@nerdmind.de>2024-12-07 21:13:28 +0100
commitdb7b51e00891e5a67e8be7baa2f3385f74174215 (patch)
tree9f30d05e92471443240469e552107161ef2c0a93 /.ht-nginx
parent8ee04e772c8e8c39407595014f366adf48ba9c31 (diff)
downloadblog-db7b51e00891e5a67e8be7baa2f3385f74174215.tar.gz
blog-db7b51e00891e5a67e8be7baa2f3385f74174215.tar.xz
blog-db7b51e00891e5a67e8be7baa2f3385f74174215.zip
Move webserver config files to "core" directory
... and add `/.htaccess` to the ignore list in `.gitignore`. If one wants to configure Apache by using the good old `.htaccess` file, all they have to do is copying the `core/ws-apache.conf` to `.htaccess`. Because of the `.gitignore`, Git will not list the `.htaccess` file as changed anymore if it contains additional configuration parameters.
Diffstat (limited to '.ht-nginx')
-rw-r--r--.ht-nginx41
1 files changed, 0 insertions, 41 deletions
diff --git a/.ht-nginx b/.ht-nginx
deleted file mode 100644
index 45bda6a..0000000
--- a/.ht-nginx
+++ /dev/null
@@ -1,41 +0,0 @@
-#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
-# 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 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 pages
-#===============================================================================
-error_page 403 /403.php;
-error_page 404 /404.php;
-
-#===============================================================================
-# Forbidden directories
-#===============================================================================
-location ~ ^/(.git|core|theme/([^/]+)/(html|lang))/ {
- return 403;
-}
-
-#===============================================================================
-# Pass requests to index.php
-#===============================================================================
-location / {
- try_files $uri $uri/ /index.php?$args;
-}
-
-#===============================================================================
-# Redirect from old to new global static dir
-#===============================================================================
-#rewrite ^/rsrc/(.*)$ /static/$1 permanent;