Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.68 KB | None | 0 0
  1. server {
  2.     listen 80;
  3.     index index.html index.php;
  4.     server_name localhost;
  5.     error_log  /var/log/nginx/error.log;
  6.     access_log /var/log/nginx/access.log;
  7.     root /var/www/backend/public;
  8.  
  9.     location /auth {
  10.         root /var/www/backend/public;
  11.         try_files $uri /index.php$is_args$args;
  12.     }
  13.  
  14.     location ~ \.php$ {
  15.         try_files $uri =404;
  16.         fastcgi_split_path_info ^(.+\.php)(/.+)$;
  17.         fastcgi_pass 127.0.0.1:9000;
  18.         fastcgi_index index.php;
  19.         include fastcgi_params;
  20.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  21.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement