Help turn on ssl

Greetings to you all. I am trying to delop a site and wanted users to
login seusurely over ssl. I am using rails 1.8.6 and when ever I try
to configure the apache server using this code, it stopes giving me a
spelling error or code not suitable

Thisis the code I use to cinfigure the apche server to access the page
called “user/login”

in the httpd.config i use,

<virtualHost *:433>
SSLEngine on
RequestHeader set user/login “https”

I also put this code int he application_controller

def ssl_required?
true
end

Then I call ssl_required on different controllers i want ot secure

for example ssl_required :login

Love is the greatest

Hi,

In your httpd.conf add this line under VirtualHost:443 block

Then your VirtualHost looks like below:

<virtualHost *:433>
SSLEngine on
RequestHeader set X_FORWARDED_PROTO ‘https’

And remove def ssl_required? from application_controller.rb

Restart apache.

On Wed, Dec 31, 2008 at 2:13 PM, Gilbert Gift S.
[email protected]wrote:

in the httpd.config i use,
end

Then I call ssl_required on different controllers i want ot secure

for example ssl_required :login

Love is the greatest


Ramu