WordPress on Heroku behind a reverse proxy

I’ve just been setting up the blog for Big5 Boutique

I thought I’d share the useful sources of info  I found to do this:

I set up the WordPress blog under the /blog/ subdirectory of the main Rails app and set up the rack-reverse-proxy to serve up the blog. Two issues to be aware of:

  1. Rack Deflater wasn’t able to serve up the WordPress css files.
  2. The WordPress visual editor gets disabled because WordPress tries to sniff the user agent but since the requests are reverse proxied, the browsers user agent isn’t coming through. Thankfully this blog article explains why this is happening and how to fix it.




This entry was posted in Uncategorized and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s