Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name igentu.com;
- listen 80;
- location / {
- index index.html index.php;
- try_files $uri $uri/ @kek;
- expires 30d;
- }
- location ~* \.(eot|ttf|woff|woff2|svg)$ {
- add_header Access-Control-Allow-Origin *;
- }
- location ^~ /app/ { deny all; }
- location ^~ /includes/ { deny all; }
- location ^~ /lib/ { deny all; }
- location ^~ /media/downloadable/ { deny all; }
- location ^~ /pkginfo/ { deny all; }
- location ^~ /report/config.xml { deny all; }
- location ^~ /var/ { deny all; }
- location /var/export/ {
- auth_basic "Restricted";
- auth_basic_user_file htpasswd;
- autoindex on;
- }
- location /. {
- return 404;
- }
- location @handler {
- rewrite / /index.php;
- }
- location @kek {
- rewrite ^(.*)$ /$1.php;
- }
- location ~ .php/ {
- rewrite ^(.*.php)/ $1 last;
- }
- location ~ .php$ {
- if (!-e $request_filename) { rewrite / /index.php last; }
- expires off;
- fastcgi_pass unix:/run/php/php7.0-fpm.sock;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param MAGE_RUN_CODE en;
- fastcgi_param MAGE_RUN_TYPE store;
- include fastcgi_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement