# ssl\_requirement problems - https --\> http

**URL:** <https://discuss.rubyonrails.org/t/ssl-requirement-problems-https-http/26436>\
**Category:** rubyonrails-talk\
**Created:** [March 17, 2008, 1:00pm UTC](https://discuss.rubyonrails.org/t/ssl-requirement-problems-https-http/26436 "2008-03-17T13:00:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam2](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@adam2](https://discuss.rubyonrails.org/u/adam2)\
**Post date:** [March 17, 2008, 1:00pm UTC](https://discuss.rubyonrails.org/t/ssl-requirement-problems-https-http/26436/1 "2008-03-17T13:00:12Z")

</div>

I am having problems with the SSL Requirement plugin. It redirects to HTTPS no problem.

Problem is when I want it to leave HTTPS it stays! Have put the following in apache ssl config:

\<VirtualHost \*:443\> &nbsp;&nbsp;ServerName codegarden.co.uk:443 &nbsp;&nbsp;ProxyPass / [http://localhost:4003/](http://localhost:4003/) &nbsp;&nbsp;ProxyPassReverse / [http://localhost:4003/](http://localhost:4003/) &nbsp;&nbsp;ProxyPreserveHost On &nbsp;&nbsp;RequestHeader set X\_FORWARDED\_PROTO 'https'

&nbsp;&nbsp;&nbsp;SSLEngine on &nbsp;&nbsp;&nbsp;SSLProxyEngine On &nbsp;&nbsp;&nbsp;SSLCertificateFile /var/ssl/public\_ssl.cert &nbsp;&nbsp;&nbsp;SSLCertificateKeyFile /var/ssl/private\_ssl.key \</VirtualHost\>

where codegarden is my domain name.

I have searched and searched, found some similar problems but no solution so far!

any help much appreciated.

many thanks adam
