Advertisement
Guest User

Untitled

a guest
May 15th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.21 KB | None | 0 0
  1. server {
  2.     listen 80;
  3.     server_name localhost;
  4.     error_log  /var/log/nginx/error.log;
  5.     access_log /var/log/nginx/access.log;
  6.  
  7.    location /auth/ {
  8.         error_log  /var/log/nginx/auth_error.log;
  9.         access_log /var/log/nginx/auth_access.log;
  10.  
  11.         alias /var/www/auth-service/public/;
  12.         index index.php;
  13.  
  14.         location ~ \.php$ {
  15.             fastcgi_split_path_info ^(.+\.php)(/.+)$;
  16.             fastcgi_pass 127.0.0.1:9000;
  17.             fastcgi_index index.php;
  18.             include fastcgi_params;
  19.             fastcgi_param SCRIPT_FILENAME /var/www/auth-service/public/index.php;
  20.         }
  21.     }
  22.  
  23.    location /graphgl-getaway/ {
  24.      error_log  /var/log/nginx/graphql_getaway_error.log;
  25.      access_log /var/log/nginx/graphql_getaway_access.log;
  26.  
  27.      alias /var/www/auth-service/public/;
  28.      index index.php;
  29.  
  30.      location ~ \.php$ {
  31.         fastcgi_split_path_info ^(.+\.php)(/.+)$;
  32.         fastcgi_pass 127.0.0.1:9000;
  33.         fastcgi_index index.php;
  34.         include fastcgi_params;
  35.         fastcgi_param SCRIPT_FILENAME /var/www/auth-service/public/index.php;
  36.      }
  37.    }
  38.  
  39.  
  40.  
  41.    location /test/ {
  42.         alias /var/www/html/;
  43.         index index.html;
  44.    }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement