Advertisement
myszwa

Ngnix.conf

Jun 16th, 2022
934
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.62 KB | None | 0 0
  1. server {
  2.    
  3.     listen 80;
  4.     index index.php index.html;
  5.     server_name localhost;
  6.     error_log /var/log/nginx/error.log;
  7.     access_log /var/log/nginx/access.log;
  8.     root /var/www/html/public;
  9.  
  10.     location / {
  11.         try_files $uri $uri/ /index.php?$query_string;
  12.     }
  13.  
  14.     location ~ \.php$ {
  15.         try_files $uri = S404;
  16.         fastcgi_split_path_info ^(.+\.php)(/.+)$;
  17.         fastcgi_pass php:9000;
  18.         fastcgi_index index.php;
  19.         include fastcgi_params;
  20.         fastcgi_param SCRIPT_FILENAME $docuemnt_root$fastcgi_script_name;
  21.         fastcgi_param PATH_INFO $fastcgi_path_info;
  22.     }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement