Guest User

Untitled

a guest
May 2nd, 2013
534
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.98 KB | None | 0 0
  1. server {
  2.  
  3. index index.html index.htm index.php index.cgi index.pl index.xhtml;
  4.  
  5.  
  6.  
  7. error_page 400 /error/400.html;
  8. error_page 401 /error/401.html;
  9. error_page 403 /error/403.html;
  10. error_page 404 /error/404.html;
  11. error_page 405 /error/405.html;
  12. error_page 500 /error/500.html;
  13. error_page 502 /error/502.html;
  14. error_page 503 /error/503.html;
  15. recursive_error_pages on;
  16. location = /error/400.html {
  17.  
  18. internal;
  19. }
  20. location = /error/401.html {
  21.  
  22. internal;
  23. }
  24. location = /error/403.html {
  25.  
  26. internal;
  27. }
  28. location = /error/404.html {
  29.  
  30. internal;
  31. }
  32. location = /error/405.html {
  33.  
  34. internal;
  35. }
  36. location = /error/500.html {
  37.  
  38. internal;
  39. }
  40. location = /error/502.html {
  41.  
  42. internal;
  43. }
  44. location = /error/503.html {
  45.  
  46. internal;
  47. }
  48.  
  49. ## Disable .htaccess and other hidden files
  50. location ~ /\. {
  51. deny all;
  52. access_log off;
  53. log_not_found off;
  54. }
  55.  
  56. location = /favicon.ico {
  57. log_not_found off;
  58. access_log off;
  59. }
  60.  
  61. location = /robots.txt {
  62. allow all;
  63. log_not_found off;
  64. access_log off;
  65. }
  66.  
  67. location /stats {
  68.  
  69. index index.html index.php;
  70. auth_basic "Members Only";
  71. auth_basic_user_file /var/www/clients/client1/web1/web/stats/.htpasswd_stats;
  72. }
  73.  
  74. location ^~ /awstats-icon {
  75. alias /usr/share/awstats/icon;
  76. }
  77.  
  78. location ~ \.php$ {
  79. try_files /2134f25b1e4dfbdba9d72f4a12b52dc5.htm @php;
  80. }
  81.  
  82. location @php {
  83. try_files $uri =404;
  84. include /etc/nginx/fastcgi_params;
  85. fastcgi_pass unix:/var/lib/php5-fpm/web1.sock;
  86. fastcgi_index index.php;
  87. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  88. #fastcgi_param PATH_INFO $fastcgi_script_name;
  89. fastcgi_intercept_errors on;
  90. }
  91.  
  92. location / {
  93. index index.html index.php shopware.php
  94. rewrite shopware.dll /shopware.php;
  95. rewrite files/documents/.* /engine last;
  96. rewrite images/ayww/(.*) /images/banner/$1 last;
  97. rewrite backend/media/(.*) media/$1 last;
  98. if (!-e $request_filename){
  99. rewrite . /shopware.php last;
  100. }
  101. }
  102.  
  103. location ~ \.(tpl|yml|ini)$ {
  104. deny all;
  105. }
  106.  
  107. location /install {
  108. location /install/assets {
  109. }
  110. if (!-e $request_filename){
  111. rewrite . /install/index.php last;
  112. }
  113. }
  114.  
  115.  
  116. }
Advertisement
Add Comment
Please, Sign In to add comment