Skip to content

Instantly share code, notes, and snippets.

@mbuckbee
Created January 4, 2011 10:09
Show Gist options
  • Save mbuckbee/764607 to your computer and use it in GitHub Desktop.
Save mbuckbee/764607 to your computer and use it in GitHub Desktop.
Wordpress with a Rails subdirectory
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