mirror of
https://github.com/YunoHost-Apps/prestashop_ynh.git
synced 2024-09-03 20:06:39 +02:00
Suppression des lignes inutiles dans la conf nginx
This commit is contained in:
parent
d6f0f7b4c5
commit
e8285a3722
1 changed files with 0 additions and 23 deletions
|
@ -4,29 +4,16 @@ location __PATHTOCHANGE__ {
|
||||||
|
|
||||||
if (!-e $request_filename)
|
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?q=$1 last;
|
||||||
rewrite ^/.*$ __PATHTOCHANGE__/index.php last;
|
rewrite ^/.*$ __PATHTOCHANGE__/index.php last;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($scheme = http) {
|
if ($scheme = http) {
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
}
|
}
|
||||||
|
|
||||||
client_max_body_size 30m;
|
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;
|
try_files $uri $uri/ __PATHTOCHANGE__/index.php?q=$uri&$args;
|
||||||
|
|
||||||
# Old image system ?
|
# 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/([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;
|
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;
|
error_page 404 /index.php?controller=404;
|
||||||
|
|
||||||
# Deny access to .htaccess .DS_Store .htpasswd etc
|
# Deny access to .htaccess .DS_Store .htpasswd etc
|
||||||
|
|
Loading…
Add table
Reference in a new issue