Advertisement
Nicklaj

nginx config

Mar 18th, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. events {
  2.  
  3. }
  4.  
  5. http {
  6. include mime.types;
  7. default_type application/octet-stream;
  8.  
  9. server {
  10. listen 80;
  11. listen [::]:80 default_server ipv6only=on;
  12. server_name localhost;
  13. root htdocs;
  14. index index.php index.html index.htm;
  15.  
  16. location ~ \.php$ {
  17. try_files $uri = 404;
  18. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  19. fastcgi_pass 127.0.0.1:9999;
  20. fastcgi_index index.php;
  21. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  22. include fastcgi_params;
  23. }
  24.  
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement