Displaying 20 results from an estimated 3000 matches similar to: "Endless Redirects with Ssl_Requirement"
2006 Nov 20
4
ssl_requirement not working
Forgive me if this isn''t 100% rails, but I''m trying to get
ssl_requirement to work and it sends my app into an infinite loop
because @request.ssl? is always returning false, even if I''m using
https://
For some reason, my @request isn''t getting any SSL info: neither
@request.ssl? nor @request.env["HTTPS"] return true.
I''m using pound/mongrel
2008 Aug 20
4
mod_proxy, mongrel, redirect issue
Hello,
I am configuring apache 2.2 to serve my rails app through mongrel at
the root of my server. First, I redirect all http traffic to https
with the following:
ServerName emiliano
NameVirtualHost *:80
<VirtualHost *:80>
RedirectPermanent / https://emiliano #this server is only accessed internally
</VirtualHost>
Inside the <VirtualHost *:443> section, I have the following
2006 Jan 23
1
ssl_requirement plugin: how do I override ssl_required?
The ssl_requirement plugin indicates that I can override the
ssl_required? method. I want to use this facility to ignore the ssl
requirement declarations when RAILS_ENV is anything other than
''production''.
My question is, where do I override this?
The relevant readme is:
http://dev.rubyonrails.org/browser/plugins/ssl_requirement/README
Also, does this plugin work with a
2006 May 08
10
Apache 2.2, ProxyPass and HTTPS
Hi all,
I''m currently trying to get Mongrel running my app whilst fronted by
apache 2.2 in a sub-directory via https. A bit convoluted I''ll grant
you but necessitated by existing systems.
The pertinent parts of my httpd.conf:
<VirtualHost 123.123.123.123:12345> #historic choice of random port number
DocumentRoot /var/www/admin
ServerName admin.example.com:12345
2007 Jan 25
6
NOT FOUND error
I''ve been hunting the web and reading the mailing lists all day but
I''m not finding any guidance on this problem. When I try to talk to my
mongrel it simply responds with NOT FOUND and nothing else. I can''t
find anything on google because this has to be the second most commond
phrase in existence.
Any help or guidance would be greatly appreciated.
Sincerely,
Chuck Vose
2008 Mar 17
0
ssl_requirement problems - https --> http
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>
ServerName codegarden.co.uk:443
ProxyPass / http://localhost:4003/
ProxyPassReverse / http://localhost:4003/
ProxyPreserveHost On
RequestHeader set X_FORWARDED_PROTO
2007 Oct 03
5
403 (Forbidden) with Apache on Mongrel Cluster
Hi,
I''ve configured a rails application on my VPS to run on two
mongrels. When I run curl on localhost, the starting page comes up
fine. That is, mongrel is serving the app perfectly.
The problem arises when trying to access the app on my ip through
apache. I
get a 403 error. Just to test things out, I''ve set generous
permissions on the entire rails directory structure
2007 Mar 12
17
need help writing a plugin
Hi,
I''m halfway developing a tiny plugin that allows people to scrub flash
video files. I''ve got my plugin setup to monitor a directory /movies.
Whenever a .flv file is requested within that directory, some stuff
should happen, if not, the request should be processed as usual. I don''t
know how to do the latter..
require ''mongrel''
require
2009 Oct 17
1
Routing Error if using ssl_required
Hi everyone,
I am running into a routing error when activating ssl.
Everything works fine, when I put
ssl_required :index
into the controller I get a routing error
Routing Error
No route matches "/meinkwikit" with {:method=>:get}
I installed the ssl plugin and put include SslRequirement into my
application_controller.
Does anybody know what I am doing wrong?
Thanks in
2007 Jan 17
2
mongrel cluster (+ Apache 2.2.4 + proxy balancer) not redirecting correctly
I''m in the process of setting up a mongrel cluster at the moment, and I''m
running into a bit of an issue. Even worse is that I''m not sure whether
this is a mongrel thing, or an Apache thing. While I''m inclined to think
that this might be a balancer thing, I decided there was a higher chance
hearing back from mongrel-users than from apache-users, so I''d
2007 Dec 04
1
ssl_required being ignored?
Hi everyone! I want to require SSL for a single action in one of my
controllers (for logging in, and sending a password).
Working off of the skateboard book, I have added:
include SslRequirement
to my application controller, and then in the login controller, I have
added the line:
ssl_required :login
This does not give me any errors, but it does not redirect me to https
either. It simply acts
2008 Oct 07
6
https problems
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.
2006 Mar 30
4
SSL Requirement plugin
Is there any way to have the plugin require SSL to be used for all
actions in a controller and just specify the ones you dont want to
require SSL using ssl_allowed?
class ApplicationController < ActiveRecord::Base
include SslRequirement
ssl_required *.*
Many thanks.
Also I could of course combine this with local.request? so that when
developing locally http is allowed, but
2008 Jan 17
6
Apache22+mod_proxy+mongrel+ssl
I am trying to move a Rails application, that uses SSL, from an
Apache/FastCGI stack, that works fine, to Apache22 and mongrel
working with a single mongrel instance (i.e., not mongrel cluster, yet.)
I have a single mongrel instance demonized and working fine on http,
on port 3000. Apache/OpenSSL/certs working fine.
Here is my test http.conf (deliberately kept as simple as possible):
2007 Sep 18
2
rSpec / Nested Routes / Mocks
I''m having a terrible time trying to test a nested route with rSpec.
I can''t seem to tell rSpec to expect the call @item.user. The
following error message plagues me not matter how I try to fuss with
the mock:
Spec::Mocks::MockExpectationError in ''ItemsController handling POST /
items should redirect to the new course on successful save''
Mock
2007 Jan 23
2
SslRequirements plugin and mocha
Hi. I''m loving mocha but have ran into a problem with using the mocha
plugin with a project that has the SslRequirement plugin. It seems
there is some conflict between the two? Any ideas?
$ ruby test/functional/calendar_controller_test.rb
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:478:in
`const_missing'': uninitialized constant
2006 Jul 01
5
how can i set the default protocol of WEBrick to https?
On my server, stunnel is running to accept HTTPS (port 443) connection
from clients and redirect them to localhost:80. And on port 80 of my
server, WEBrick is running to accept HTTP connection.
In such situation, WEBrick generates URLs beginning with ''http://'',
not with ''https://''. So one can access to ''https://myserver/'', but
when he click on
2007 Sep 02
4
request.ssl? not working
My rails app can not tell if it is on an SSL connection or not. I am
using https:// as my protocol and then we I inspect request.ssl? it
returns false. Any ideas why it would be doing this?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
2008 Sep 23
5
Problem getting Rails to emit the correct (proxy) domain in route urls
Behind the scenes my app runs like this:
http://myapp.mydomain.com/myapp and
and
https://myapp.mydomain.com/myapp
are Apache 2.2 virtual hosts proxy-balanced to a mongrel cluster
on the same machine.
But I need to make these available here:
https://www.mydomain.com/myapp
and
https://myapp.mydomain.com/myapp
are on a second server using ProxyPass and ProxyPassReverse to
2008 Jun 12
2
SslRequirement Problem
Hello everyone,
I''m pretty new to the RoR''s thing and am having a problem setting up
SslRequirement plugin.
I have installed the SslRequirement plugin and added it to my
application_controller.rb with include SslRequirement
However, when I try and do "ssl_required :process_payment"
I get the following error:
undefined method `ssl_required'' for