Advertisement
Guest User

Untitled

a guest
Aug 30th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.45 KB | None | 0 0
  1. server {
  2.     listen 80 default_server;
  3.     listen [::]:80 default_server ipv6only=on;
  4.  
  5.     root /usr/share/nginx/html;
  6.     index index.html index.htm;
  7.  
  8.     server_name localhost;
  9.  
  10.     location / {
  11.         try_files $uri $uri/ =404;
  12.     }
  13.  
  14.     location ~ \.php$ {
  15.         fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
  16.         fastcgi_index index.php;
  17.         include fastcgi_params;
  18.     }
  19.  
  20.     # deny access to .htaccess files, if Apache's document root
  21.     location ~ /\.ht {
  22.         deny all;
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement