%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/985914/root/data/old/var/lib/letsencrypt/backups/1509369615.6/
Upload File :
Create Path :
Current File : //proc/985914/root/data/old/var/lib/letsencrypt/backups/1509369615.6/knihkupectvi-monami.cz_8

server {
	listen 77.93.194.60:443 ssl http2; listen [2a01:430:12b:0:0:0:0:2]:443 ssl http2;
	server_name www.knihkupectvi-monami.cz;
	
	include ssl_params;
ssl_certificate /etc/letsencrypt/live/knihkupectvi-monami.cz/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/knihkupectvi-monami.cz/privkey.pem; # managed by Certbot
	error_page 404 /404.php;
	
		location / {
		root   /www/knihkupectvi-monami.cz/www.knihkupectvi-monami.cz;
		index  index.html index.htm index.php;
		autoindex off;
#    try_files $uri $uri/ /index.php?$args;

############ PRASACKY REWRITE #######################
#rewrite img/([0-9]+)/([0-9]+)/?$ /img.php?id=$1&size=$2 ;
#rewrite img/([0-9]+)/big/?$ /img.php?id=$1&bulk=big ;
#rewrite "sortiment/([0-9a-f]{32})/([0-9]+)/?$" /index.php?page=sortiment&sid=$1&offset=$2 ;
#rewrite sortiment/([0-9]+)/?$ /index.php?page=sortiment&offset=$1 ;
#rewrite "sortiment/([a-z0-9\-]+)/([0-9a-f]{32})/?$" /index.php?page=sortiment&ktg=$1&sid=$2 ;
#rewrite sortiment/([a-z0-9\-]+)/?$ /index.php?page=sortiment&ktg=$1 ;
#rewrite "sortiment/([0-9a-f]{32})/([0-9]+)/([^/]+)/([^/]+)/([^/]+)/([0-9]+)/?$" /index.php?page=sortiment&sid=$1&offset=$2&listby=$3&sort=$4&style=$5&limit=$6 ;
#rewrite sortiment/([0-9]+)/([^/]+)/([^/]+)/([^/]+)/([0-9]+)/?$ /index.php?page=sortiment&offset=$1&listby=$2&sort=$3&style=$4&limit=$5 ;
#rewrite "detail-zbozi/([0-9a-f]{32})/([0-9]+)/?$" /index.php?page=detail-zbozi&sid=$1&offset=$2 ;
#rewrite detail-zbozi/([a-z0-9\-]+)/([0-9]+)/?$ /index.php?page=detail-zbozi&id=$1&offset=$2 ;
#rewrite "detail-zbozi/([a-z0-9\-]+)/([0-9a-f]{32})/?$" /index.php?page=detail-zbozi&id=$1&sid=$2 ;
#rewrite detail-zbozi/([a-z0-9\-]+)/?$ /index.php?page=detail-zbozi&id=$1 ;
#rewrite "nakupni-kosik/add/([0-9]+)/([0-9]+)/([0-9a-f]{32})/?$" /index.php?page=nakupni-kosik&action=add&id=$1&pocet=$2&sid=$3 ;
#rewrite nakupni-kosik/add/([0-9]+)/([0-9]+)/?$ /index.php?page=nakupni-kosik&action=add&id=$1&pocet=$2 ;
#rewrite "nakupni-kosik/update/([0-9]+)/([0-9]+)/([0-9a-f]{32})/?$" /index.php?page=nakupni-kosik&action=update&id=$1&pocet=$2&sid=$3 ;
#rewrite nakupni-kosik/update/([0-9]+)/([0-9]+)/?$ /index.php?page=nakupni-kosik&action=update&id=$1&pocet=$2 ;
#rewrite "nakupni-kosik/remove/([0-9]+)/([0-9a-f]{32})/?$" /index.php?page=nakupni-kosik&action=remove&id=$1&sid=$2 ;
#rewrite nakupni-kosik/remove/([0-9]+)/?$ /index.php?page=nakupni-kosik&action=remove&id=$1 ;
#rewrite "goto_login/([^/]+)/([0-9a-f]{32})/?$" /index.php?page=goto_login&jdina=$1&sid=$2 ;
#rewrite goto_login/([^/]+)/?$ /index.php?page=goto_login&jdina=$1 ;
#rewrite goto_login//?$ /index.php?page=uvodni-stranka ;
#rewrite "detail-objednavky/([0-9a-f]{32})/([0-9]+)/?$" /index.php?page=detail-objednavky&sid=$1&obj=$2 ;
#rewrite detail-objednavky/([0-9]+)/?$ /index.php?page=detail-objednavky&obj=$1 ;
#rewrite vyhledavani/([^/]+)/?$ /index.php?page=vyhledavani&akce=search&hledej=$1 ;
#rewrite "vyhledavani/([^/]+)/([^/]+)/([abcd]{1,4})/?$" /index.php?page=vyhledavani&akce=search&hledej=$1&spoj=$2&kde=$3 ;
#rewrite "vyhledavani/([^/]+)/([^/]+)/([abcd]{1,4})/([0-9]+)/([^/]+)/([^/]+)/([^/]+)/([0-9]+)/?$" /index.php?page=vyhledavani&akce=search&hledej=$1&spoj=$2&kde=$3&offset=$4&listby=$5&sort=$6&style=$7&limit=$8 ;
#rewrite "vyhledavani/([^/]+)/([^/]+)/([abcd]{1,4})/([0-9]+)/?$" /index.php?page=vyhledavani&akce=search&hledej=$1&spoj=$2&kde=$3&offset=$4 ;
#rewrite "verify/([0-9a-f]{32})/?$" /index.php?page=registrace&code=$1 ;
#rewrite ^/([^/\-][a-z0-9\-]+)/?$ /index.php?page=$1 ;
#rewrite "^/([^/\-][a-z0-9\-]+)/([0-9a-v]{32,})/?$" /index.php?page=$1&sid=$2 ;
#rewrite ^/([^/\-][a-z0-9\-]+)/?$ /index.php?page=detail-zbozi&id=$1 ;
#rewrite robots/.txt /robots.txt ;
rewrite /customDataFeed/EBD4E447-4FCD-4CD8-8EEE-5B9308C1AA03 /heureka.xml;

#################### END PRASACKY REWRITE ###################################

##### Alien CONF

    location = /install/sandbox/anything.php {
        rewrite .* /install/sandbox/test.php last;
    }

    # Pass API requests to the webservice dispatcher
    location ^~ /api/ {
        rewrite ^/api/(.*) /webservice/dispatcher.php?url=$1 last;
    }

    # Block all files starting with ., like .htaccess
    location ~ /\. {
        deny all;
    }

    # Block all files with these extensions
    location ~ \.(md|tpl)$ {
        deny all;
    }

    # Directories explicitly allowed in directories blocked below
    location ~ ^/docs/csv_import/ {
        allow all;
    }

    # Block everything else in these directories
    location ~ ^/(adminjanicka22/backups|adminjanicka22/export|adminjanicka22/import|adminjanicka22/tabs|classes|config|docs|download|install666|localization|log|override|tools|translations)/ {
        deny all;
    }

    # 1 month expiry on other static stuff
    # Also do the friendly URL rewrites
    location ~* \.(eot|gif|ico|jpg|jpeg|otf|pdf|png|svg|swf|ttf|woff)$ {
        rewrite ^/([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$1$2$3.jpg break;
        rewrite ^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$1$2$3$4.jpg break;
        rewrite ^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$1$2$3$4$5.jpg break;
        rewrite ^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg break;
        rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg break;
        rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg break;
        rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg break;
        rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg break;
        rewrite ^/c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ /img/c/$1$2$3.jpg break;
        rewrite ^/c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ /img/c/$1$2.jpg break;
        rewrite ^/images_ie/?([^/]+)\.(jpe?g|png|gif)$ /js/jquery/plugins/fancybox/images/$1.$2 break;
        # next line is PSCSX-2790 bug workaround, fixed in 1.6.0.10
        rewrite ^/[a-zA-Z]+/img/cms/(.*)$ /img/cms/$1 break;
#        expires 1M;
#        add_header Cache-Control public;
        allow all;
    }

    # Block everything else in these directories
    location ~ ^/img/cms/ {
        deny all;
    }

    # 1 week expiry on CSS and JavaScript
#    location ~ \.(css|js)$ {
#        expires 1w;
#        add_header Cache-Control public;
#        allow all;
#    }

    # The rest is either served directly or passed on to the dispatcher
    location / {
        try_files $uri $uri/ /index.php?$args;
    }

	}
	location ~ \.php$ {
		include fastcgi_params;
		fastcgi_pass  127.0.0.1:9000;
		fastcgi_index  index.php;
		fastcgi_param  SCRIPT_FILENAME    /www/knihkupectvi-monami.cz/www.knihkupectvi-monami.cz$fastcgi_script_name;
	}


}

server { 
   listen 77.93.194.60:80; listen [2a01:430:12b:0:0:0:0:2]:80; listen 127.0.0.1;
    server_name  knihkupectvi-monami.cz;
    return       301 https://www.knihkupectvi-monami.cz$request_uri;
}
server {
    listen 77.93.194.60:443 ssl http2; listen [2a01:430:12b:0:0:0:0:2]:443 ssl http2;
    server_name  knihkupectvi-monami.cz;
ssl_certificate /etc/letsencrypt/live/knihkupectvi-monami.cz/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/knihkupectvi-monami.cz/privkey.pem; # managed by Certbot
    return       301 https://www.knihkupectvi-monami.cz$request_uri;


}
server { 
   listen 77.93.194.60:80; listen [2a01:430:12b:0:0:0:0:2]:80; listen 127.0.0.1;
    server_name  www.knihkupectvi-monami.cz;
    return       301 https://www.knihkupectvi-monami.cz$request_uri;
}

server {
        listen 77.93.194.60:80; listen [2a01:430:12b:0:0:0:0:2]:80;
        server_name demo.knihkupectvi-monami.cz;

#    include ssl_params;
#    ssl_certificate  /home/waritko/cert/varak_net.pem;
#    ssl_certificate_key  /home/waritko/cert/varak_net.key;
#    add_header "Public-Key-Pins-Report-Only" "pin-sha256=\"DEfB6oZEqmVbw7xhj3OT9urxywTO046j4eXuwPGbiBU=\"; pin-sha256=\"yeZsqWj0RbVofoH5G1eVLjgyrq7CVZIQGuuVVaOw3qY=\"; max-age=60; report-uri=\"https://report-uri.io/report/495632cc5dc0e8992e03505ce3bcfaf7/reportOnly\"";

    root   /www/knihkupectvi-monami.cz/demo.knihkupectvi-monami.cz;
    index  index.html index.htm index.php;
    autoindex off;
    autoindex_exact_size off;

    ##### Alien CONF

    location = /install/sandbox/anything.php {
        rewrite .* /install/sandbox/test.php last;
    }

    # Pass API requests to the webservice dispatcher
    location ^~ /api/ {
        rewrite ^/api/(.*) /webservice/dispatcher.php?url=$1 last;
    }

    # Block all files starting with ., like .htaccess
    location ~ /\. {
        deny all;
    }

    # Block all files with these extensions
    location ~ \.(md|tpl)$ {
        deny all;
    }

    # Directories explicitly allowed in directories blocked below
    location ~ ^/docs/csv_import/ {
        allow all;
    }

    # Block everything else in these directories
    location ~ ^/(adminjanicka22/backups|adminjanicka22/export|adminjanicka22/import|adminjanicka22/tabs|classes|config|docs|download|install666|localization|log|override|tools|translations)/ {
        deny all;
    }

    # 1 month expiry on other static stuff
    # Also do the friendly URL rewrites
    location ~* \.(eot|gif|ico|jpg|jpeg|otf|pdf|png|svg|swf|ttf|woff)$ {
        rewrite ^/([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$1$2$3.jpg break;
        rewrite ^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$1$2$3$4.jpg break;
        rewrite ^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$1$2$3$4$5.jpg break;
        rewrite ^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg break;
        rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg break;
        rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg break;
        rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg break;
        rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg break;
        rewrite ^/c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ /img/c/$1$2$3.jpg break;
        rewrite ^/c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ /img/c/$1$2.jpg break;
        rewrite ^/images_ie/?([^/]+)\.(jpe?g|png|gif)$ /js/jquery/plugins/fancybox/images/$1.$2 break;
        # next line is PSCSX-2790 bug workaround, fixed in 1.6.0.10
        rewrite ^/[a-zA-Z]+/img/cms/(.*)$ /img/cms/$1 break;
#        expires 1M;
#        add_header Cache-Control public;
        allow all;
    }

    # Block everything else in these directories
    location ~ ^/img/cms/ {
        deny all;
    }

    # 1 week expiry on CSS and JavaScript
#    location ~ \.(css|js)$ {
#        expires 1w;
#        add_header Cache-Control public;
#        allow all;
#    }

    # The rest is either served directly or passed on to the dispatcher
    location / {
        try_files $uri $uri/ /index.php?$args;
    }

    ## END ALIEN

    location ~ \.php$ {
        include fastcgi_params;
        fastcgi_pass  127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME    /www/knihkupectvi-monami.cz/demo.knihkupectvi-monami.cz$fastcgi_script_name;
#        fastcgi_param HTTPS On;
#        fastcgi_param SSL On;
    }
}



server {
        listen 77.93.194.60:443 ssl http2; listen [2a01:430:12b:0:0:0:0:2]:443 ssl http2;
        server_name demo.knihkupectvi-monami.cz;

    include ssl_params;
ssl_certificate /etc/letsencrypt/live/mail2.varak.net/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/mail2.varak.net/privkey.pem; # managed by Certbot

#    add_header "Public-Key-Pins-Report-Only" "pin-sha256=\"DEfB6oZEqmVbw7xhj3OT9urxywTO046j4eXuwPGbiBU=\"; pin-sha256=\"yeZsqWj0RbVofoH5G1eVLjgyrq7CVZIQGuuVVaOw3qY=\"; max-age=60; report-uri=\"https://report-uri.io/report/495632cc5dc0e8992e03505ce3bcfaf7/reportOnly\"";

    root   /www/knihkupectvi-monami.cz/demo.knihkupectvi-monami.cz;
    index  index.html index.htm index.php;
    autoindex off;
    autoindex_exact_size off;

    ##### Alien CONF 

    location = /install/sandbox/anything.php {
        rewrite .* /install/sandbox/test.php last;
    }

    # Pass API requests to the webservice dispatcher
    location ^~ /api/ {
        rewrite ^/api/(.*) /webservice/dispatcher.php?url=$1 last;
    }

    # Block all files starting with ., like .htaccess
    location ~ /\. {
        deny all;
    }

    # Block all files with these extensions
    location ~ \.(md|tpl)$ {
        deny all;
    }

    # Directories explicitly allowed in directories blocked below
    location ~ ^/docs/csv_import/ {
        allow all;
    }

    # Block everything else in these directories
    location ~ ^/(adminjanicka22/backups|adminjanicka22/export|adminjanicka22/import|adminjanicka22/tabs|classes|config|docs|download|install666|localization|log|override|tools|translations)/ {
        deny all;
    }

    # 1 month expiry on other static stuff
    # Also do the friendly URL rewrites
    location ~* \.(eot|gif|ico|jpg|jpeg|otf|pdf|png|svg|swf|ttf|woff)$ {
        rewrite ^/([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$1$2$3.jpg break;
        rewrite ^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$1$2$3$4.jpg break;
        rewrite ^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$1$2$3$4$5.jpg break;
        rewrite ^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg break;
        rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg break;
        rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg break;
        rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg break;
        rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg break;
        rewrite ^/c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ /img/c/$1$2$3.jpg break;
        rewrite ^/c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ /img/c/$1$2.jpg break;
        rewrite ^/images_ie/?([^/]+)\.(jpe?g|png|gif)$ /js/jquery/plugins/fancybox/images/$1.$2 break;
        # next line is PSCSX-2790 bug workaround, fixed in 1.6.0.10
        rewrite ^/[a-zA-Z]+/img/cms/(.*)$ /img/cms/$1 break;
#        expires 1M;
#        add_header Cache-Control public;
        allow all;
    }

    # Block everything else in these directories
    location ~ ^/img/cms/ {
        deny all;
    }

    # 1 week expiry on CSS and JavaScript
#    location ~ \.(css|js)$ {
#        expires 1w;
#        add_header Cache-Control public;
#        allow all;
#    }

    # The rest is either served directly or passed on to the dispatcher
    location / {
        try_files $uri $uri/ /index.php?$args;
    }

    ## END ALIEN

    location ~ \.php$ {
        include fastcgi_params;
        fastcgi_pass  127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME    /www/knihkupectvi-monami.cz/demo.knihkupectvi-monami.cz$fastcgi_script_name;
        fastcgi_param HTTPS On;
        fastcgi_param SSL On;
    }

}



Zerion Mini Shell 1.0