From e8285a3722bb421bb7de8de8195f2797ac004e70 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Thu, 23 Mar 2017 23:27:54 +0100 Subject: [PATCH] Suppression des lignes inutiles dans la conf nginx --- conf/nginx.conf | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index f5225a1..a7ad4b1 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -4,29 +4,16 @@ location __PATHTOCHANGE__ { if (!-e $request_filename) { - # /prestashop/index.php?id_category=5&controller=category - rewrite ^/([^/]*)/recherche/(.*)$ __PATHTOCHANGE__/index.php?id_categorie$1&controller$2 last; - # rewrite "^__PATHTOCHANGE__/([a-zA-Z]+)/([a-zA-Z]+)$" /index.php?id_category=$1&controller=$2 last; rewrite ^(.+)$ __PATHTOCHANGE__/index.php?q=$1 last; rewrite ^/.*$ __PATHTOCHANGE__/index.php last; } - if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; } client_max_body_size 30m; - # Add headers to serve security related headers - add_header Strict-Transport-Security "max-age=15768000;"; - add_header X-Content-Type-Options nosniff; - add_header X-Frame-Options "SAMEORIGIN"; - add_header X-XSS-Protection "1; mode=block"; - add_header X-Robots-Tag none; - add_header X-Download-Options noopen; - add_header X-Permitted-Cross-Domain-Policies none; - try_files $uri $uri/ __PATHTOCHANGE__/index.php?q=$uri&$args; # Old image system ? @@ -41,16 +28,6 @@ location __PATHTOCHANGE__ { rewrite ^/c/([0-9]+)(-[.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+.jpg$ /img/c/$1$2$3.jpg last; rewrite ^/c/([a-zA-Z_-]+)(-[0-9]+)?/.+.jpg$ /img/c/$1$2.jpg last; - # Symfony controllers - # location ~ /(international|_profiler|module|product|combination|specific-price)/(.*)$ { - # try_files $uri $uri/ /index.php?q=$uri&$args $admin_dir/index.php$is_args$args; - # } - - # Redirect needed to "hide" index.php - # location / { - # try_files $uri $uri/ /index.php$uri&$args; - # } - error_page 404 /index.php?controller=404; # Deny access to .htaccess .DS_Store .htpasswd etc