Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assets not showing up for https #38

Open
originated opened this issue Jan 29, 2014 · 1 comment
Open

Assets not showing up for https #38

originated opened this issue Jan 29, 2014 · 1 comment

Comments

@originated
Copy link

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
Copy link

mebezac commented Apr 8, 2015

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants