aboutsummaryrefslogtreecommitdiffstats
path: root/.ht-nginx
blob: 9d3053fc9f2262217d537a8d717135683ce5a0c5 (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 /system/403.php;
error_page 404 /system/404.php;

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

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