Advertisement
Guest User

Untitled

a guest
Dec 16th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4.  
  5. root /var/www/html;
  6.  
  7. # Add index.php to the list if you are using PHP
  8. index index.html index.htm index.nginx-debian.html index.php;
  9.  
  10. server_name localhost;
  11.  
  12. location / {
  13. # First attempt to serve request as file, then
  14. # as directory, then fall back to displaying a 404.
  15. try_files $uri $uri/ =404;
  16. }
  17.  
  18.  
  19. # pass PHP scripts to FastCGI server
  20. #
  21. location ~ \.php$ {
  22. include snippets/fastcgi-php.conf;
  23. # With php-fpm (or other unix sockets):
  24. fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
  25. # # With php-cgi (or other tcp sockets):
  26. # fastcgi_pass 127.0.0.1:9000;
  27. }
  28.  
  29. # deny access to .htaccess files, if Apache's document root
  30. # concurs with nginx's one
  31. #
  32. #location ~ /\.ht {
  33. # deny all;
  34. #}
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement