Created
August 26, 2015 23:29
-
-
Save onderozcan/3891c1c55a7020c3bd24 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
listen 80; | |
server_name www.ambul.com; | |
root /www/deneme/public/; | |
index index.php; | |
#listen 443 ssl; | |
#ssl_certificate /etc/nginx/ssl/nginx.crt; | |
#ssl_certificate_key /etc/nginx/ssl/nginx.key; | |
#charset UTF-8; | |
#access_log /var/log/nginx/deneme.access.log; | |
error_log /var/log/nginx/deneme.log; | |
location / { | |
try_files $uri $uri/ /index.php$is_args$args; | |
} | |
location ~ \.php$ { | |
try_files $uri /index.php =404; | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini | |
# With php5-fpm: | |
fastcgi_pass unix:/var/run/php5-fpm.sock; | |
fastcgi_index index.php; | |
include fastcgi_params; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment