Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. server {
  2. listen 80;
  3. # listen [::]:80 default_server;
  4.  
  5. # root /var/www/example.com/public_html;
  6. root /home/vkarpenko/PhpstormProjects/EssaySearchCRM/frontend/web;
  7. index index.php index.html index.htm index.nginx-debian.html;
  8.  
  9. server_name api.es-crm.local;
  10.  
  11. location / {
  12. try_files $uri $uri/ /index.php?$args;
  13. }
  14.  
  15. # location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
  16. # try_files $uri =404;
  17. # }
  18.  
  19. location ~ \.php$ {
  20. include snippets/fastcgi-php.conf;
  21. # fastcgi_pass unix:/var/run/php/php5.6-fpm.sock;
  22. fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
  23.  
  24. }
  25.  
  26. location /files/ {
  27. alias /srv/filecache/;
  28. internal;
  29. }
  30.  
  31. location /guidefiles/ {
  32. alias /srv/datastore/filecache/;
  33. # alias /srv/filecache/;
  34. internal;
  35. }
  36.  
  37. location ~ /\.ht {
  38. deny all;
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement