Skip to content

Instantly share code, notes, and snippets.

@zhiephie
Created January 20, 2015 12:58
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 zhiephie/c2cd05f3dd3c142b4418 to your computer and use it in GitHub Desktop.
Save zhiephie/c2cd05f3dd3c142b4418 to your computer and use it in GitHub Desktop.
anu
server {
listen 80;
server_name anu.com www.anu.com;
#return 301 https://$server_name$request_uri;
#}
#server {
# server_name anu.com;
# listen 443 ssl;
# return 301 https://$server_name$request_uri;
# ssl on;
# ssl_certificate /etc/nginx/ssl/anu.crt;
# ssl_certificate_key /etc/nginx/ssl/myserver.key;
# ssl_protocols SSLv3 TLSv1;
# ssl_ciphers HIGH:!ADH:!MD5;
access_log /srv/www/anu.com/logs/access.log;
error_log /srv/www/anu.com/logs/error.log;
root /srv/www/anu.com;
location / {
index index.html index.htm index.php;
try_files $uri $uri/ /index.php?$query_string;
}
location ~ .php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment