Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
133
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 {{PORT}};
  3.  
  4. root {{PUBLIC_PATH}};
  5.  
  6. index index.php index.html index.htm index.nginx-debian.html;
  7.  
  8. server_name localhost {{LOCAL_IP}};
  9.  
  10. location / {
  11. try_files $uri $uri/ /index.php?$query_string;
  12. }
  13.  
  14. location ~ \.php$ {
  15. include snippets/fastcgi-php.conf;
  16. fastcgi_pass unix:/run/php/php{{PHP_VERSION}}-fpm.sock;
  17. }
  18.  
  19. location ~ /\.ht {
  20. deny all;
  21. }
  22.  
  23. location ~ /.well-known {
  24. allow all;
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement