I''m having a problem but don''t know what is causing it so I don''t know exactly where to post, please bear with me. I''m trying to set up https access however whenever I go to https://url_for_site the root route renders but the url is rewritten to http://url_for_site. The ssl request shows in the apache logs but obviously no further ssl requests show up. I''ve tried several tutorials and ideas and nothing I do makes any difference. I''m using Apache 2.2 with Mongrel on Windows. Does anyone have any ideas? Thanks, Glen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Please post your https virtualhost.. Do you have any .htaccess files anywhere? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
<VirtualHost _default_:443> ServerName cnm746852.techno.tvinet:443 ServerAdmin lholcomb2-gm5F7nXbJ3A@public.gmane.org TransferLog "C:\Program Files\Apache Software Foundation \Apache2.2\logs\ssl_transfer.log" ErrorLog "C:\Program Files\Apache Software Foundation\Apache2.2\logs \ssl_error.log" CustomLog "C:\Program Files\Apache Software Foundation\Apache2.2\logs \ssl_access.log" combined ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000 SSLEngine on RequestHeader set X_FORWARDED_PROTO ''https'' SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW: +SSLv2:+EXP:+eNULL SSLCertificateFile "C:/Documents and Settings\glen\workspace \user_accounts\host.cert" SSLCertificateKeyFile "C:/Documents and Settings\glen\workspace \user_accounts\host.key" <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi- bin"> SSLOptions +StdEnvVars </Directory> BrowserMatch ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 CustomLog "C:/Program Files/Apache Software Foundation/Apache2.2/ logs/ssl_request.log" \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" </VirtualHost> I haven''t created any .htaccess files so if any they are defaults in default locations. On Oct 7, 4:54 pm, Freddy Andersen <fre...-RCI/mp9mI1I6GGFevw1D/A@public.gmane.org> wrote:> Please post your https virtualhost.. > > Do you have any .htaccess files anywhere?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Well, I seem to be running in circles. I''ll try posting to the mongrel list maybe the problem lies there? On Oct 8, 8:07 am, Glen <DamnBig...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> <VirtualHost _default_:443> > ServerName cnm746852.techno.tvinet:443 > ServerAdmin lholco...-gm5F7nXbJ3A@public.gmane.org > TransferLog "C:\Program Files\Apache Software Foundation > \Apache2.2\logs\ssl_transfer.log" > ErrorLog "C:\Program Files\Apache Software Foundation\Apache2.2\logs > \ssl_error.log" > CustomLog "C:\Program Files\Apache Software Foundation\Apache2.2\logs > \ssl_access.log" combined > > ProxyPass /http://localhost:3000/ > ProxyPassReverse /http://localhost:3000 > > SSLEngine on > > RequestHeader set X_FORWARDED_PROTO ''https'' > > SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW: > +SSLv2:+EXP:+eNULL > > SSLCertificateFile "C:/Documents and Settings\glen\workspace > \user_accounts\host.cert" > > SSLCertificateKeyFile "C:/Documents and Settings\glen\workspace > \user_accounts\host.key" > > <FilesMatch "\.(cgi|shtml|phtml|php)$"> > SSLOptions +StdEnvVars > </FilesMatch> > <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi- > bin"> > SSLOptions +StdEnvVars > </Directory> > > BrowserMatch ".*MSIE.*" \ > nokeepalive ssl-unclean-shutdown \ > downgrade-1.0 force-response-1.0 > > CustomLog "C:/Program Files/Apache Software Foundation/Apache2.2/ > logs/ssl_request.log" \ > "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" > </VirtualHost> > > I haven''t created any .htaccess files so if any they are defaults in > default locations. > > On Oct 7, 4:54 pm, Freddy Andersen <fre...-RCI/mp9mI1I6GGFevw1D/A@public.gmane.org> wrote: > > > Please post your https virtualhost.. > > > Do you have any .htaccess files anywhere?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Sorry was away.. Do you have any rails plugins installed? If you try https://yourhost/images/someimage.jpg does that serve the image in https? Is there anything in the rails log about redirect? or maybe the apache logs? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Oct 20, 1:57 pm, Freddy Andersen <fre...-RCI/mp9mI1I6GGFevw1D/A@public.gmane.org> wrote:> Sorry was away.. Do you have any rails plugins installed? > > If you tryhttps://yourhost/images/someimage.jpgdoes that serve the > image in https? > > Is there anything in the rails log about redirect? or maybe the apache > logs?Yes to all three. I have will_paginate installed. Although as a gem not "as a plugin" images are served in https and in the log I get the following: Redirected to http:// --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Nevermind, that was a redirect due to a session timeout. Here is the rails log when I request the main page without the timeout issue (it still doesn''t render https without the timeout): Rendering C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ action_controller/templates/rescues/layout.erb (not_found) Processing AuthenticationController#start (for 10.131.12.17 at 2008-10-21 14:10:55) [GET] Session ID: 3df2ea2f70658b7e93b5f98d08b2b743 Parameters: {"action"=>"start", "controller"=>"authentication"} Rendering template within layouts/authentication Rendering authentication/start Completed in 0.01600 (62 reqs/sec) | Rendering: 0.01600 (100%) | DB: 0.00000 (0%) | 200 OK [http://cnm746852.techno.tvinet/] Processing AuthenticationController#start (for 10.131.12.17 at 2008-10-21 14:12:19) [GET] Session ID: 3df2ea2f70658b7e93b5f98d08b2b743 Parameters: {"action"=>"start", "controller"=>"authentication"} Redirected to http://cnm746852.techno.tvinet/ Filter chain halted as [:ensure_proper_protocol] rendered_or_redirected. Completed in 0.00010 (10000 reqs/sec) | DB: 0.00000 (0%) | 302 Found [https://cnm746852.techno.tvinet/] Processing AuthenticationController#start (for 10.131.12.17 at 2008-10-21 14:12:22) [GET] Session ID: 3df2ea2f70658b7e93b5f98d08b2b743 Parameters: {"action"=>"start", "controller"=>"authentication"} Rendering template within layouts/authentication Rendering authentication/start Completed in 0.01600 (62 reqs/sec) | Rendering: 0.00000 (0%) | DB: 0.00000 (0%) | 200 OK [http://cnm746852.techno.tvinet/] On Oct 21, 2:06 pm, Freddy Andersen <fre...-RCI/mp9mI1I6GGFevw1D/A@public.gmane.org> wrote:> Glen could you post the entire message including the initial request > from the rails log.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---