Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen :80;
- server_name d;
- root ;
- index index.html index.htm index.php index.cgi index.pl index.xhtml;
- error_page 400 /error/400.html;
- error_page 401 /error/401.html;
- error_page 403 /error/403.html;
- error_page 404 /error/404.html;
- error_page 405 /error/405.html;
- error_page 500 /error/500.html;
- error_page 502 /error/502.html;
- error_page 503 /error/503.html;
- recursive_error_pages on;
- location = /error/400.html {
- internal;
- }
- location = /error/401.html {
- internal;
- }
- location = /error/403.html {
- internal;
- }
- location = /error/404.html {
- internal;
- }
- location = /error/405.html {
- internal;
- }
- location = /error/500.html {
- internal;
- }
- location = /error/502.html {
- internal;
- }
- location = /error/503.html {
- internal;
- }
- error_log /var/log/ispconfig/httpd/dev.magicon-online.de/error.log;
- access_log /var/log/ispconfig/httpd/dev.magicon-online.de/access.log combined;
- ## Disable .htaccess and other hidden files
- location ~ /\. {
- deny all;
- access_log off;
- log_not_found off;
- }
- location = /favicon.ico {
- log_not_found off;
- access_log off;
- }
- location = /robots.txt {
- allow all;
- log_not_found off;
- access_log off;
- }
- location /stats {
- index index.html index.php;
- auth_basic "Members Only";
- auth_basic_user_file /var/www/clients/client1/web1/web/stats/.htpasswd_stats;
- }
- location ^~ /awstats-icon {
- alias /usr/share/awstats/icon;
- }
- location ~ \.php$ {
- try_files /76edf5f7cc62a49a67289db07c878fa2.htm @php;
- }
- location @php {
- try_files $uri =404;
- include /etc/nginx/fastcgi_params;
- fastcgi_pass unix:/var/lib/php5-fpm/web1.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- #fastcgi_param PATH_INFO $fastcgi_script_name;
- fastcgi_intercept_errors on;
- fastcgi_buffer_size 128k;
- fastcgi_buffers 256 16k;
- fastcgi_busy_buffers_size 256k;
- fastcgi_temp_file_write_size 256k;
- fastcgi_read_timeout 240;
- client_max_body_size 24M;
- client_body_buffer_size 128k;
- }
- ### Shopware Config ###
- location ~ \.(tpl|yml|ini)$ {
- deny all;
- }
- location ^~ /media/temp/ {
- deny all;
- }
- location ^~ /cache/ {
- deny all;
- }
- location ^~ /files/documents/ {
- deny all;
- }
- location /check/ {
- index index.php;
- try_files $uri /check/index.php?$args;
- }
- location /install {
- location /install/assets {
- }
- if (!-e $request_filename){
- rewrite . /install/index.php last;
- }
- }
- location = /sitemap.xml {
- try_files $uri /shopware.php?controller=SitemapXml;
- }
- location / {
- index index.html index.php shopware.php
- rewrite shopware.dll /shopware.php;
- rewrite files/documents/.* /engine last;
- rewrite images/ayww/(.*) /images/banner/$1 last;
- rewrite backend/media/(.*) /media/$1 last;
- if (!-e $request_filename){
- rewrite . /shopware.php last;
- }
- }
- ### Chive ###
- location /chive/ {
- try_files $uri chive/$uri/ /chive/index.php?q=$uri&$args;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment