Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80 default_server;
- listen [::]:80 default_server ipv6only=on;
- root /usr/share/nginx/sean.taipei;
- index index.php index.html index.htm;
- server_name sean.taipei www.sean.taipei;
- location / {
- try_files $uri $uri/ =404;
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_split_path_info ^(.+\.php)(/.+)?$;
- fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- }
- location ~ /\.ht {
- deny all;
- }
- location ~ /\.git {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment