blob: 010f488d0cb2f219d48694183e38ab9f5fe0b31d (
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|template/([^/]+)/(html|lang)/) {
return 403;
}
#===============================================================================
# Main rules
#===============================================================================
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php break;
}
|