Last active
July 16, 2018 18:35
-
-
Save hamiltonsw/bc4581fb3c47ab06e0e7c83e28f70d00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name kizanpro.local; | |
index index.php index.html index.htm index.nginx-debian.html; | |
root /git/kizan-pro; | |
location / { | |
try_files $uri $uri/ /index.php; | |
} | |
location ~ \.php$ { | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
try_files $fastcgi_script_name =404; | |
set $path_info $fastcgi_path_info; | |
fastcgi_param PATH_INFO $path_info; | |
fastcgi_index index.php; | |
include fastcgi.conf; | |
fastcgi_pass 127.0.0.1:9000; | |
} | |
location ~ /\.ht { | |
deny all; | |
} | |
error_log /var/log/nginx/kizan_error.log; | |
access_log off; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment