Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- # listen [::]:80 default_server;
- # root /var/www/example.com/public_html;
- root /home/vkarpenko/PhpstormProjects/EssaySearchCRM/frontend/web;
- index index.php index.html index.htm index.nginx-debian.html;
- server_name api.es-crm.local;
- location / {
- try_files $uri $uri/ /index.php?$args;
- }
- # location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
- # try_files $uri =404;
- # }
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- # fastcgi_pass unix:/var/run/php/php5.6-fpm.sock;
- fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
- }
- location /files/ {
- alias /srv/filecache/;
- internal;
- }
- location /guidefiles/ {
- alias /srv/datastore/filecache/;
- # alias /srv/filecache/;
- internal;
- }
- location ~ /\.ht {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement