\n 1\r\n 2\r\n 3\r\n 4\r\n 5\r\n 6\r\n 7\r\n 8\r\n 9\r\n 10\r\n 11\r\n 12\r\n 13\r\n 14\r\n 15\r\n 16\r\n 17\r\n 18\r\n 19\r\n 20\r\n 21\r\n 22\r\n 23\r\n 24\r\n 25\r\n 26\r\n 27\r\n 28\r\n 29\r\n 30\r\n 31\r\n 32\r\n 33\r\n 34\r\n 35\r\n 36\r\n 37\r\n 38\r\n 39\r\n 40\r\n 41\r\n 42\r\n 43\r\n 44\r\n 45\r\n 46\r\n 47\r\n 48\r\n 49\r\n 50\r\n 51\r\n 52\r\n 53\r\n 54\r\n 55\r\n 56\r\n 57\r\n 58\r\n 59\r\n 60\r\n 61\r\n 62\r\n 63\r\n 64\r\n 65\r\n 66\r\n 67\r\n 68\r\n 69\r\n 70\r\n 71\r\n 72\r\n 73\r\n 74\r\n 75\r\n 76\r\n 77\r\n 78\r\n 79\r\n 80\r\n 81\r\n 82\r\n 83\r\n 84\r\n 85\r\n 86\r\n 87\r\n 88\r\n 89\r\n 90\r\n 91\r\n 92\r\n 93\r\n 94\r\n 95\r\n 96\r\n 97\r\n 98\r\n 99\r\n100\r\n101\r\n102\r\n103\r\n104\r\n105\r\n106\r\n107\r\n108\r\n109\r\n110\r\n111\r\n112\r\n113\r\n114\r\n115\r\n116\r\n117\r\n118\r\n119\r\n120\r\n121\r\n122\r\n123\r\n124\r\n125\r\n126\r\n127\r\n128\r\n129\r\n130\r\n131\r\n132\r\n133\r\n134\r\n135\r\n136\r\n137\r\n138\r\n139\r\n140\r\n141\r\n142\r\n143\r\n144\r\n145\r\n146\r\n147\r\n148\r\n149\r\n150\r\n151\r\n152\r\n153\r\n154\r\n155\r\n156\r\n157\r\n158\r\n159\r\n160\r\n161\r\n162\r\n163\r\n164\r\n165\r\n166\r\n167\r\n168\r\n169\r\n170\r\n171\r\n172\r\n173\r\n174\r\n175\r\n176\r\n177\r\n178\r\n179\r\n180\r\n181\r\n182\r\n183\r\n184\r\n185\r\n186\r\n187\r\n188\r\n189\r\n190\r\n191\r\n192\r\n193\r\n194\r\n195\r\n196\r\n197\r\n198\r\n199\r\n200\r\n201\r\n202\r\n203\r\n204\r\n205\r\n206\r\n207\r\n208\r\n209\r\n210\r\n211\r\n212\r\n213\r\n214\r\n215\r\n216\r\n217\r\n218\r\n219\r\n220\r\n221\r\n222\r\n223\r\n224\r\n225\r\n226\r\n227\r\n228\r\n229\r\n230\r\n231\r\n232\r\n233\r\n234\r\n235\r\n236\r\n237\r\n238\r\n239\r\n240\r\n241\r\n242\r\n243\r\n244\r\n245\r\n246\r\n247\r\n248\r\n249\r\n250\r\n251\r\n252\r\n253\r\n254\r\n255\r\n256\r\n257\r\n258\r\n259\r\n260\r\n261\r\n262\r\n263\r\n264\r\n265\r\n266\r\n267<\/pre>\n<\/td>\n\n###############<\/span>\r\n# HTTPS VHOST #<\/span>\r\n###############<\/span>\r\n\r\nserver<\/span> {\r\n ######################<\/span>\r\n # REGULAR PARAMETERS #<\/span>\r\n ######################<\/span>\r\n\r\n server_name<\/span> {domain}<\/span>;\r\n\r\n root<\/span> {directory}<\/span>;\r\n index<\/span> index.php<\/span>;\r\n\r\n listen<\/span> [::]:443<\/span> ssl<\/span> ipv6only=on<\/span>;\r\n listen<\/span> 443<\/span> ssl<\/span>;\r\n\r\n # Comment this if you are not using Certbot<\/span>\r\n ssl_certificate<\/span> \/etc\/letsencrypt\/live\/<\/span>{domain}\/fullchain.pem<\/span>;\r\n ssl_certificate_key<\/span> \/etc\/letsencrypt\/live\/<\/span>{domain}\/privkey.pem<\/span>;\r\n include<\/span> \/etc\/letsencrypt\/options-ssl-nginx.conf<\/span>; \r\n ssl_dhparam<\/span> \/etc\/letsencrypt\/ssl-dhparams.pem<\/span>; \r\n\r\n error_log<\/span> \/var\/log\/nginx\/<\/span>{domain}.error<\/span>;\r\n\r\n\r\n ########################<\/span>\r\n # LOCATION DIRECTIVES #<\/span>\r\n ########################<\/span>\r\n\r\n # PHP Status monitor, uncomment if needed (you have to enable it in your PHP-FPM pool config)<\/span>\r\n # location ~ ^\/(status|ping)$ {<\/span>\r\n # allow 127.0.0.1;<\/span>\r\n # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<\/span>\r\n # fastcgi_index index.php;<\/span>\r\n # include fastcgi_params;<\/span>\r\n # fastcgi_pass unix:\/run\/php\/php7.3-fpm.sock;<\/span>\r\n # }<\/span>\r\n\r\n # Change this to your default admin path (for ex. \/admin-mywebsite ; prefix the URL with a \"\/\")<\/span>\r\n set<\/span> $admin_dir<\/span> {admin-directory}<\/span>;\r\n\r\n # Symfony controllers<\/span>\r\n location<\/span> ~ \/(international|sell|improve|_profiler|module|product|feature|attribute|supplier|combination|specific-price|configure)\/(.*)$<\/span> {\r\n try_files<\/span> $uri<\/span> $uri\/<\/span> \/index.php?q=<\/span>$uri&$args<\/span> $admin_dir\/index.php$is_args$args<\/span>;\r\n }\r\n\r\n # Default locations<\/span>\r\n location<\/span> \/<\/span> {\r\n try_files<\/span> $uri<\/span> $uri\/<\/span> \/index.php<\/span>$uri&$args<\/span>;\r\n }\r\n\r\n # Use only one of the following php location according to your PHP configuration<\/span>\r\n location<\/span> ~ [^\/]\\.php(\/|$)<\/span> {\r\n # Verify that the file exists, redirect to index if not <\/span>\r\n try_files<\/span> $fastcgi_script_name<\/span> \/index.php<\/span>$uri&$args<\/span> =404<\/span>;\r\n fastcgi_index<\/span> index.php<\/span>;\r\n\r\n # Environment variables for PHP<\/span>\r\n fastcgi_split_path_info<\/span> ^(.+\\.php)(\/.+)<\/span>$;\r\n\r\n include<\/span> fastcgi_params<\/span>;\r\n\r\n fastcgi_param<\/span> PATH_INFO<\/span> $fastcgi_path_info<\/span>;\r\n fastcgi_param<\/span> PATH_TRANSLATED<\/span> $document_root$fastcgi_path_info<\/span>;\r\n fastcgi_param<\/span> SCRIPT_FILENAME<\/span> $document_root$fastcgi_script_name<\/span>;\r\n\r\n # Optimized for CloudFlare CDN, if you are not using it you can increase theses variables according to your needs<\/span>\r\n fastcgi_keep_conn<\/span> on<\/span>;\r\n fastcgi_read_timeout<\/span> 100s<\/span>;\r\n fastcgi_send_timeout<\/span> 100s<\/span>;\r\n client_max_body_size<\/span> 20M<\/span>;\r\n fastcgi_max_temp_file_size<\/span> 0<\/span>;\r\n fastcgi_temp_file_write_size<\/span> 512k<\/span>;\r\n\r\n # Change this for your PHP socket<\/span>\r\n fastcgi_pass<\/span> unix:\/run\/php\/php7.3-fpm.sock<\/span>;\r\n }\r\n\r\n # If the PHP directive from the top didn't work, use the following one:<\/span>\r\n # location ~ \\.php$ {<\/span>\r\n # try_files $uri =404;<\/span>\r\n # fastcgi_split_path_info ^(.+\\.php)(\/.+)$;<\/span>\r\n # fastcgi_pass unix:\/run\/php\/php7.3-fpm.sock;<\/span>\r\n # fastcgi_index index.php;<\/span>\r\n # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<\/span>\r\n # include fastcgi_params;<\/span>\r\n # }<\/span>\r\n\r\n location<\/span> ~*<\/span> \\.(eot|otf|ttf|woff|woff2)<\/span>$ {\r\n add_header<\/span> Access-Control-Allow-Origin<\/span> *<\/span>;\r\n }\r\n\r\n location<\/span> ~*<\/span> ^.+\\.(css|js|ogg|ogv|svg|svgz|eot|otf|woff|woff2|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)<\/span>$ {\r\n access_log<\/span> off<\/span>;\r\n log_not_found<\/span> off<\/span>;\r\n expires<\/span> max<\/span>;\r\n add_header<\/span> Pragma<\/span> public<\/span>;\r\n add_header<\/span> Cache-Control<\/span> \"public,<\/span> must-revalidate,<\/span> proxy-revalidate\"<\/span>;\r\n }\r\n\r\n location<\/span> ~*<\/span> \\.(pdf)<\/span>$ {\r\n expires<\/span> 30d<\/span>;\r\n }\r\n\r\n location<\/span> = \/favicon.ico<\/span> {\r\n log_not_found<\/span> off<\/span>;\r\n access_log<\/span> off<\/span>;\r\n }\r\n\r\n location<\/span> = \/robots.txt<\/span> {\r\n allow<\/span> all<\/span>;\r\n log_not_found<\/span> off<\/span>;\r\n access_log<\/span> off<\/span>;\r\n }\r\n\r\n # File security<\/span>\r\n # .htaccess .DS_Store .htpasswd etc<\/span>\r\n location<\/span> ~ \/\\.<\/span> {\r\n deny<\/span> all<\/span>;\r\n }\r\n\r\n # Source code directories<\/span>\r\n location<\/span> ~ ^\/(app|bin|cache|classes|config|controllers|docs|localization|override|src|tests|tools|translations|travis-scripts|vendor|var)\/<\/span> {\r\n deny<\/span> all<\/span>;\r\n }\r\n\r\n location<\/span> ~ \\.(htaccess|yml|log|twig|sass|git|tpl)$<\/span> {\r\n deny<\/span> all<\/span>;\r\n }\r\n\r\n # vendor in modules directory<\/span>\r\n location<\/span> ~ ^\/modules\/.*\/vendor\/<\/span> {\r\n deny<\/span> all<\/span>;\r\n }\r\n\r\n # Prevent exposing other sensitive files<\/span>\r\n location<\/span> ~ \\.(yml|log|tpl|twig|sass)$<\/span> {\r\n deny<\/span> all<\/span>;\r\n }\r\n\r\n # Prevent injection of php files<\/span>\r\n location<\/span> \/upload<\/span> {\r\n location<\/span> ~ \\.php$<\/span> {\r\n deny<\/span> all<\/span>;\r\n }\r\n }\r\n\r\n location<\/span> \/img<\/span> {\r\n location<\/span> ~ \\.php$<\/span> {\r\n deny<\/span> all<\/span>;\r\n }\r\n }\r\n\r\n\r\n ######################<\/span>\r\n # REWRITE DIRECTIVES #<\/span>\r\n ######################<\/span>\r\n\r\n # Uncomment & edit this if you are using multilanguage (preset for french here)<\/span>\r\n # rewrite ^\/fr$ \/fr\/ redirect;<\/span>\r\n # rewrite ^\/fr\/(.*) \/$1;<\/span>\r\n\r\n # Rewrite for admin directory<\/span>\r\n location<\/span> $admin_dir\/<\/span> {\r\n if<\/span> (!-e<\/span> $request_filename<\/span>)<\/span> {\r\n rewrite<\/span> ^\/.*<\/span>$ $admin_dir\/index.php<\/span> last<\/span>;\r\n }\r\n }\r\n\r\n # Images<\/span>\r\n rewrite<\/span> ^\/([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?\/.+.jpg<\/span>$ \/img\/p\/<\/span>$1\/$1$2$3.jpg<\/span> last<\/span>;\r\n rewrite<\/span> ^\/([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?\/.+.jpg<\/span>$ \/img\/p\/<\/span>$1\/$2\/$1$2$3$4.jpg<\/span> last<\/span>;\r\n rewrite<\/span> ^\/([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?\/.+.jpg<\/span>$ \/img\/p\/<\/span>$1\/$2\/$3\/$1$2$3$4$5.jpg<\/span> last<\/span>;\r\n rewrite<\/span> ^\/([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?\/.+.jpg<\/span>$ \/img\/p\/<\/span>$1\/$2\/$3\/$4\/$1$2$3$4$5$6.jpg<\/span> last<\/span>;\r\n rewrite<\/span> ^\/([0-9])([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?\/.+.jpg<\/span>$ \/img\/p\/<\/span>$1\/$2\/$3\/$4\/$5\/$1$2$3$4$5$6$7.jpg<\/span> last<\/span>;\r\n | |