Skip to content

Instantly share code, notes, and snippets.

@onderozcan
Created August 26, 2015 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save onderozcan/3891c1c55a7020c3bd24 to your computer and use it in GitHub Desktop.
Save onderozcan/3891c1c55a7020c3bd24 to your computer and use it in GitHub Desktop.
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