Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. server {
  2.  
  3. server_name nouveaulashes.nouveau.local;
  4. root /var/www/nouveaulashes.nouveau.local;
  5. index index.php;
  6.  
  7. error_log /var/log/nginx/error.log warn;
  8. access_log /var/log/nginx/accesslog;
  9.  
  10. location = /favicon.ico {
  11. log_not_found off;
  12. access_log off;
  13. }
  14.  
  15. location = /robots.txt {
  16. allow all;
  17. log_not_found off;
  18. access_log off;
  19. }
  20.  
  21. location / {
  22. try_files $uri $uri/ /index.php?$args;
  23. }
  24.  
  25. location /proshop {
  26.  
  27. alias /var/www/shops;
  28. # try_files $uri $uri/ @nested;
  29.  
  30. location ~ \.php$ {
  31. include snippets/fastcgi-php.conf;
  32. fastcgi_param SCRIPT_FILENAME $request_filename;
  33. fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
  34. }
  35.  
  36. }
  37.  
  38. location /shop {
  39.  
  40. alias /var/www/shops;
  41. #try_files $uri $uri/ @shop;
  42.  
  43. location ~ \.php$ {
  44. include snippets/fastcgi-php.conf;
  45. fastcgi_param SCRIPT_FILENAME $request_filename;
  46. fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
  47. }
  48.  
  49. }
  50.  
  51. #location @shop {
  52. # rewrite /shop/(.*)$ index.php?/$1 last;
  53. # }
  54.  
  55.  
  56. # location @nested {
  57. # rewrite /proshop/(.*)$ index.php?/$1 last;
  58. # }
  59.  
  60. location ~ /\.ht { deny all; }
  61.  
  62. location ~ \.php$ {
  63. include snippets/fastcgi-php.conf;
  64. fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
  65. }
  66.  
  67. location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
  68. expires max;
  69. log_not_found off;
  70. }
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement