Skip to content

Instantly share code, notes, and snippets.

@vtypal
Forked from mbuckbee/nginx.conf
Created January 7, 2011 14:34
Show Gist options
  • Save vtypal/769514 to your computer and use it in GitHub Desktop.
Save vtypal/769514 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name www.wordpress-domain-name.com;
root /var/www/wordpress;
index index.php;
try_files $uri $uri/ /index.php;
location /rails {
passenger_min_instances 2;
passenger_enabled on;
passenger_base_uri /rails;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/wordpress$fastcgi_script_name;
}
}
passenger_pre_start http://www.wordpress-domain-name.com/rails;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment