Skip to content

Instantly share code, notes, and snippets.

@malev
Created April 13, 2012 04:57
Show Gist options
  • Save malev/2373815 to your computer and use it in GitHub Desktop.
Save malev/2373815 to your computer and use it in GitHub Desktop.
Nginx conf file
server {
listen 80;
server_name *.mycoolblog.com mycoolblog.com www.mycoolblog.com;
root /home/malev/blog/current/;
try_files $uri $uri/ /index.php;
location / {
index index.html index.htm index.php;
}
location ~ \.php$ {
passenger_enabled off;
include /opt/nginx/conf/fastcgi_params;
fastcgi_pass 127.0.0.1:49232;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment