Advertisement
Gustavo_Inzunza

aaa

Nov 10th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. server {
  2.     listen 80 default_server;
  3.     listen [::]:80 default_server;
  4.  
  5.     root /var/www/html;
  6.     index index.php index.html index.htm index.nginx-debian.html;
  7.  
  8.     server_name server_domain_or_IP;
  9.  
  10.     location / {
  11.         try_files $uri $uri/ =404;
  12.     }
  13.  
  14.     location ~ \.php$ {
  15.         include snippets/fastcgi-php.conf;
  16.         fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  17.     }
  18.  
  19.     location ~ /\.ht {
  20.         deny all;`.
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement