Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gzip on;
- gzip_min_length 1100;
- gzip_buffers 4 32k;
- gzip_comp_level 9;
- gzip_types text/plain text/css image/x-icon image/bmp image/png image/gif image/jpeg image/jpg application/json application/x-javascript text/javascript;
- gzip_vary on;
- gzip_static on;
- charset utf-8;
- charset_types text/xml text/plain text/vnd.wap.wml
- application/javascript application/rss+xml;
- location @rewrite {
- rewrite ^/index/category/_data/(.*)$ /_data/$1 last;
- rewrite ^/index/category/themes/(.*)$ /themes/$1 last;
- rewrite ^/index/category/plugins/(.*)$ /plugins/$1 last;
- rewrite ^/picture/category/_data/(.*)$ /_data/$1 last;
- rewrite ^/index/page/_data/(.*)$ /_data/$1 last;
- rewrite ^/index/contact/_data/(.*)$ /_data/$1 last;
- #
- rewrite ^/picture((/|$).*)$ /picture.php?$1 last;
- rewrite ^/index((/|$).*)$ /index.php?$1 last;
- # The following is needed for batch operations which use i.php
- rewrite ^/i((/|$).*)$ /i.php?$1 last;
- }
- location / {
- index index.php;
- try_files $uri $uri/ @rewrite;
- }
- location /forum {
- try_files $uri $uri/ /forum/index.php;
- }
- if ( $request_uri ~ "/forum/index.(php|html?)" ) {
- rewrite ^ /forum/$1 permanent;
- }
Advertisement
Add Comment
Please, Sign In to add comment