darkreeper

Pi_nginx_gbridge

Nov 21st, 2019
1,249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.55 KB | None | 0 0
  1. server {
  2.     listen 80;
  3.     listen 127.0.0.1;
  4.     index index.php index.html;
  5.     root /var/www/public;
  6.  
  7.     location ~ \.php$ {
  8.         try_files $uri =404;
  9.         fastcgi_split_path_info ^(.+\.php)(/.+)$;
  10.         fastcgi_pass web-fpm:9000;
  11.         fastcgi_index index.php;
  12.         include fastcgi_params;
  13.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  14.         fastcgi_param PATH_INFO $fastcgi_path_info;
  15.     }
  16.  
  17.     location / {
  18.         try_files $uri $uri/ /index.php?$query_string;
  19.         gzip_static on;
  20.     }
  21. }
Advertisement