Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name nouveaulashes.nouveau.local;
- root /var/www/nouveaulashes.nouveau.local;
- index index.php;
- error_log /var/log/nginx/error.log warn;
- access_log /var/log/nginx/accesslog;
- location = /favicon.ico {
- log_not_found off;
- access_log off;
- }
- location = /robots.txt {
- allow all;
- log_not_found off;
- access_log off;
- }
- location / {
- try_files $uri $uri/ /index.php?$args;
- }
- location /proshop {
- alias /var/www/shops;
- # try_files $uri $uri/ @nested;
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_param SCRIPT_FILENAME $request_filename;
- fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
- }
- }
- location /shop {
- alias /var/www/shops;
- #try_files $uri $uri/ @shop;
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_param SCRIPT_FILENAME $request_filename;
- fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
- }
- }
- #location @shop {
- # rewrite /shop/(.*)$ index.php?/$1 last;
- # }
- # location @nested {
- # rewrite /proshop/(.*)$ index.php?/$1 last;
- # }
- location ~ /\.ht { deny all; }
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
- }
- location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
- expires max;
- log_not_found off;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement