Assets not showing up for https #38

Open
mcifani opened this Issue Jan 29, 2014 · 1 comment

2 participants

@mcifani

Hi,

I have reverse proxy setup for a subfolder to a wordpress blog, which is hosted on an ec2 server. Ultimate goal "https://www.example.com/blog/" The problem is the parent site is in https, so for transparency I've added openssl to the lamp stack(ec2). The problem is that the wordpress blog is not showing any assets/css.

routes:
#wordpress
match "/blog" => redirect("/blog/")

config.ru

use Rack::ReverseProxy do
reverse_proxy /^\/blog(\/.*)$/, 'http://xx.xx.xx.x$1', opts={:preserve_host => true}
end

xx.xx.xx.x = ip to the ec2 box with wordpress installed.

@mebezac

In case anyone else has this issue, make sure your link in the Rack::ReverseProxy block is https instead of http

in the config.ru:

use Rack::ReverseProxy do
  reverse_proxy(/^\/blog(\/.*)$/,
    'https://xx.xx.xx.x$1',
    opts = {:preserve_host => true})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment