aboutsummaryrefslogtreecommitdiffstats
path: root/.ht-nginx
blob: 9f85d418a06d68ab74d33e2f7759e30630e805f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
# nginx configuration rules                  [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! #
#                                                                              #
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#

#===============================================================================
# Error documents
#===============================================================================
error_page 403 /403.php;
error_page 404 /404.php;

#===============================================================================
# Forbidden directories
#===============================================================================
location ~ ^/(core|theme/([^/]+)/(html|lang)/) {
	return 403;
}

#===============================================================================
# Main rules
#===============================================================================
if (!-e $request_filename) {
	rewrite ^(.*)$ /index.php break;
}