Guest User

Untitled

a guest
Sep 5th, 2013
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 KB | None | 0 0
  1. server {
  2. listen :80;
  3.  
  4.  
  5. server_name d;
  6.  
  7. root ;
  8.  
  9.  
  10.  
  11. index index.html index.htm index.php index.cgi index.pl index.xhtml;
  12.  
  13.  
  14.  
  15. error_page 400 /error/400.html;
  16. error_page 401 /error/401.html;
  17. error_page 403 /error/403.html;
  18. error_page 404 /error/404.html;
  19. error_page 405 /error/405.html;
  20. error_page 500 /error/500.html;
  21. error_page 502 /error/502.html;
  22. error_page 503 /error/503.html;
  23. recursive_error_pages on;
  24. location = /error/400.html {
  25.  
  26. internal;
  27. }
  28. location = /error/401.html {
  29.  
  30. internal;
  31. }
  32. location = /error/403.html {
  33.  
  34. internal;
  35. }
  36. location = /error/404.html {
  37.  
  38. internal;
  39. }
  40. location = /error/405.html {
  41.  
  42. internal;
  43. }
  44. location = /error/500.html {
  45.  
  46. internal;
  47. }
  48. location = /error/502.html {
  49.  
  50. internal;
  51. }
  52. location = /error/503.html {
  53.  
  54. internal;
  55. }
  56.  
  57. error_log /var/log/ispconfig/httpd/dev.magicon-online.de/error.log;
  58. access_log /var/log/ispconfig/httpd/dev.magicon-online.de/access.log combined;
  59.  
  60. ## Disable .htaccess and other hidden files
  61. location ~ /\. {
  62. deny all;
  63. access_log off;
  64. log_not_found off;
  65. }
  66.  
  67. location = /favicon.ico {
  68. log_not_found off;
  69. access_log off;
  70. }
  71.  
  72. location = /robots.txt {
  73. allow all;
  74. log_not_found off;
  75. access_log off;
  76. }
  77.  
  78. location /stats {
  79.  
  80. index index.html index.php;
  81. auth_basic "Members Only";
  82. auth_basic_user_file /var/www/clients/client1/web1/web/stats/.htpasswd_stats;
  83. }
  84.  
  85. location ^~ /awstats-icon {
  86. alias /usr/share/awstats/icon;
  87. }
  88.  
  89. location ~ \.php$ {
  90. try_files /76edf5f7cc62a49a67289db07c878fa2.htm @php;
  91. }
  92.  
  93. location @php {
  94. try_files $uri =404;
  95. include /etc/nginx/fastcgi_params;
  96. fastcgi_pass unix:/var/lib/php5-fpm/web1.sock;
  97. fastcgi_index index.php;
  98. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  99. #fastcgi_param PATH_INFO $fastcgi_script_name;
  100. fastcgi_intercept_errors on;
  101.  
  102. fastcgi_buffer_size 128k;
  103. fastcgi_buffers 256 16k;
  104. fastcgi_busy_buffers_size 256k;
  105. fastcgi_temp_file_write_size 256k;
  106. fastcgi_read_timeout 240;
  107.  
  108. client_max_body_size 24M;
  109. client_body_buffer_size 128k;
  110.  
  111. }
  112.  
  113.  
  114.  
  115. ### Shopware Config ###
  116. location ~ \.(tpl|yml|ini)$ {
  117. deny all;
  118. }
  119.  
  120. location ^~ /media/temp/ {
  121. deny all;
  122. }
  123.  
  124. location ^~ /cache/ {
  125. deny all;
  126. }
  127.  
  128. location ^~ /files/documents/ {
  129. deny all;
  130. }
  131.  
  132. location /check/ {
  133. index index.php;
  134. try_files $uri /check/index.php?$args;
  135. }
  136.  
  137. location /install {
  138. location /install/assets {
  139. }
  140. if (!-e $request_filename){
  141. rewrite . /install/index.php last;
  142. }
  143. }
  144.  
  145. location = /sitemap.xml {
  146. try_files $uri /shopware.php?controller=SitemapXml;
  147. }
  148.  
  149. location / {
  150. index index.html index.php shopware.php
  151. rewrite shopware.dll /shopware.php;
  152. rewrite files/documents/.* /engine last;
  153. rewrite images/ayww/(.*) /images/banner/$1 last;
  154. rewrite backend/media/(.*) /media/$1 last;
  155. if (!-e $request_filename){
  156. rewrite . /shopware.php last;
  157. }
  158. }
  159.  
  160. ### Chive ###
  161. location /chive/ {
  162. try_files $uri chive/$uri/ /chive/index.php?q=$uri&$args;
  163. }
  164.  
  165.  
  166. }
Advertisement
Add Comment
Please, Sign In to add comment