Guest User

Untitled

a guest
May 23rd, 2020
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.46 KB | None | 0 0
  1. server {
  2.     listen 80;
  3.     index index.php index.html;
  4.     root /var/www/html/public;
  5.  
  6.     location / {
  7.         try_files $uri/index.php?$args;
  8.     }
  9.  
  10.     location ~ \.php$ {
  11.         fastcgi_split_path_info ^(.+\.php)(/.+)$;
  12.         fastcgi_pass app:9000;
  13.         fastcgi_index index.php;
  14.         include fastcgi_params;
  15.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  16.         fastcgi_param PATH_INFO $fastcgi_path_info;
  17.     }
  18. }
Add Comment
Please, Sign In to add comment