Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Misc
Rewriting/enforcing SSL behing an SSL termination point
 

Index | Next | Previous | View Flat


jason at pethub

Dec 8, 2011, 11:08 PM


Views: 924
Permalink
Rewriting/enforcing SSL behing an SSL termination point

Hi everyone, new Varnish user and new to the list here, but I've quickly
become a strong advocate of using Varnish in our organization based on my
initial experiences with it.

However, I'm having a difficult time finding information on what I think
would be a fairly common problem. We want to enforce the use of www.
(which we currently do with mod_rewrite) AND enforce the use of HTTPS -
site wide. I'm aware that we can do both of these with mod_rewrite, but
there are various reasons I'd like to keep this at the Varnish levelŠ

We are hosted on Amazon Web Services and all SSL termination is done by an
Elastic Load Balancer. So all I'm looking to do is re-write URLs like
thisŠ

http://domain.com -> https://www.domain.com
http://www.domain.com -> https://www.domain.com
https://domain.com -> https://www.domain.com

Of course, we also want to pass on the x-forwarded-proto header (which is
pretty well documented, no problem there.)

The URL re-write directions on the website address rewriting the host and
the path well, but not SSL. It would make me quite happy if we could use
Varnish for all this.

Regards,
Jason Farnsworth



_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Subject User Time
Rewriting/enforcing SSL behing an SSL termination point jason at pethub Dec 8, 2011, 11:08 PM
    Re: Rewriting/enforcing SSL behing an SSL termination point varnish at mm Dec 8, 2011, 11:45 PM
    Re: Rewriting/enforcing SSL behing an SSL termination point perbu at varnish-software Dec 9, 2011, 12:48 AM
    Re: Rewriting/enforcing SSL behing an SSL termination point jason at pethub Dec 14, 2011, 8:40 PM
        Re: Rewriting/enforcing SSL behing an SSL termination point jason at pethub Dec 15, 2011, 12:51 PM
            Re: Rewriting/enforcing SSL behing an SSL termination point cosimo at streppone Dec 19, 2011, 6:27 AM
                Re: Rewriting/enforcing SSL behing an SSL termination point jason at pethub Dec 20, 2011, 2:04 AM
    Re: Rewriting/enforcing SSL behing an SSL termination point cianmcgovern91 at gmail Dec 31, 2011, 5:22 PM
    Re: Rewriting/enforcing SSL behing an SSL termination point perbu at varnish-software Jan 3, 2012, 6:24 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.