Advertisement
Guest User

Nginx Configuration File

a guest
Nov 15th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server;
  4.  
  5. root /var/www/html;
  6.  
  7. index index.html index.php;
  8.  
  9. server_name _;
  10.  
  11. location ~ [^/]\.php(/|$) {
  12. fastcgi_split_path_info ^(.+?\.php)(/.*)$;
  13. include fastcgi_params;
  14. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  15. fastcgi_param PATH_INFO $fastcgi_path_info;
  16. fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
  17. fastcgi_pass 127.0.0.1:9000;
  18. fastcgi_index index.php;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement