Guest User

Untitled

a guest
Nov 1st, 2015
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. gzip on;
  2. gzip_min_length 1100;
  3. gzip_buffers 4 32k;
  4. gzip_comp_level 9;
  5. 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;
  6. gzip_vary on;
  7. gzip_static on;
  8. charset utf-8;
  9. charset_types text/xml text/plain text/vnd.wap.wml
  10. application/javascript application/rss+xml;
  11. location @rewrite {
  12. rewrite ^/index/category/_data/(.*)$ /_data/$1 last;
  13. rewrite ^/index/category/themes/(.*)$ /themes/$1 last;
  14. rewrite ^/index/category/plugins/(.*)$ /plugins/$1 last;
  15. rewrite ^/picture/category/_data/(.*)$ /_data/$1 last;
  16. rewrite ^/index/page/_data/(.*)$ /_data/$1 last;
  17. rewrite ^/index/contact/_data/(.*)$ /_data/$1 last;
  18.  
  19. #
  20. rewrite ^/picture((/|$).*)$ /picture.php?$1 last;
  21. rewrite ^/index((/|$).*)$ /index.php?$1 last;
  22. # The following is needed for batch operations which use i.php
  23. rewrite ^/i((/|$).*)$ /i.php?$1 last;
  24. }
  25.  
  26. location / {
  27. index index.php;
  28. try_files $uri $uri/ @rewrite;
  29. }
  30. location /forum {
  31. try_files $uri $uri/ /forum/index.php;
  32. }
  33. if ( $request_uri ~ "/forum/index.(php|html?)" ) {
  34. rewrite ^ /forum/$1 permanent;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment