search for: x_forwarded_proto

Displaying 20 results from an estimated 20 matches for "x_forwarded_proto".

2010 Jan 09
8
X-Forwarded-Proto / X_FORWARDED_PROTO
Eric, think I came across an issue with the parser in unicorn, with a request (due to 2 layers of nginx proxying) coming across with both a X_FORWARDED_PROTO and a X-Forwarded-Proto header. From the socket (in HttpRequest) - we get: X_FORWARDED_PROTO: http X-Forwarded-Proto: https which is parsed to HTTP_X_FORWARDED_PROTO"=>"http,https There was a passenger ticket that describes that from nginx''s point of view - X-Forwar...
2008 Apr 02
0
X_FORWARDED_PROTO issues
...avior that i can''t track down and I''m not sure if this is an Apache problem, a mongrel problem or neither. Anyway - in my production setting I have two Apache 2.2 proxy servers pointing to two servers running mongrel instances. In my SSL.conf file I have this: RequestHeader set X_FORWARDED_PROTO ''https'' It seems that if I reboot apache or reboot the mongrel instances without rebooting both in sequence that this proto value gets corrupted and request.ssl? in rails stops working properly. It''s as if request.ssl? is coming in incorrectly. Just wondering if anyon...
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
2007 Oct 13
3
Endless Redirects with Ssl_Requirement
I''m running an application on mongrel with apache 2.2.3. SSL works fine when I enter an https manually. But when I use the plugin, I get an endless redirect. Got the same error when I tried running the following simplified version of SslRequirement from within an action: unless request.ssl? redirect_to "https://#{request.host}/#{request.uri}" end So there must be a
2007 Jan 25
6
NOT FOUND error
...fo}n%%)'' deflate #CustomLog logs/mosaic_deflate_log deflate ----- myapp.conf: <VirtualHost myapp.tld:80> Include /etc/rails/myapp.common # This is required to convince Rails (via mod_proxy_balancer) that we''re # actually using HTTPS. RequestHeader set X_FORWARDED_PROTO ''https'' ErrorLog /usr/local/apache2/logs/myapp_errors_log CustomLog /usr/local/apache2/logs/myapp_log combined </VirtualHost> <Proxy balancer://myapp_mongrel_cluster> BalancerMember http://127.0.0.1:8000 BalancerMember http://127.0.0.1:8001 <...
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
2011 Oct 10
0
passenger , ruby on rails , apache 2.2.21
...rectory> BrowserMatch ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 CustomLog "/usr/local/apache2/logs/ssl_request_log" \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" RequestHeader set X_FORWARDED_PROTO "https" RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R] RewriteCond %{HTTPS} !=on RewriteRule ^/(.*) https://%{SERVER_NAME}%{REQUEST_URI} [L,R] ProxyRequests Off <Proxy *> Order Allow,Deny All...
2007 Jan 17
2
mongrel cluster (+ Apache 2.2.4 + proxy balancer) not redirecting correctly
...on ruby 1.8.5, and the following Apache (v2.2.4) configuration for the virtual host (domain and usernames changed): <VirtualHost *:443> ServerName server.domain.com:443 ServerAdmin me at domain.com DocumentRoot /home/desq/deployment/current #RequestHeader set X_FORWARDED_PROTO ''https'' <Directory "/home/user/deployment/current"> Options FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> <Proxy balancer://mongrel_c...
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
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.
2007 Feb 21
6
Problem with url_for and https - overrides all options
...>link here</a> Both the development server and the live one are running over https and they''re both running the same versions of everything so I''m guessing it''s something about how the https variable is being passed on the live server (where I am able to use the X_FORWARDED_PROTO ''https'' header rather than having to set it manually as I do on the testing server. Aside from a few minor configuration differences (mostly database connection strings) the two versions of the application are the same SVN revision and entirely identical. All help welcome, I'...
2008 Jan 17
6
Apache22+mod_proxy+mongrel+ssl
...+MEDIUM:+LOW: +SSLv2:+EXP:+eNULL SSLCertificateKeyFile "/usr/local/etc/apache22/certs/ new.identry.com/server.key" SSLCertificateFile "/usr/local/etc/apache22/certs/new.identry.com/ server.crt" #DocumentRoot "/home/identry/public_html" RequestHeader set X_FORWARDED_PROTO ''https'' ProxyPass / https://new.identry.com:3000/ ProxyPassReverse / https://new.identry.com:3000/ ProxyPreserveHost on </VirtualHost> The two commented-out DocumentRoot lines let me test the Apache SSL config with static content. If I use the DocumentRoot lines...
2006 Aug 10
0
apache+ssl+cgi problem
.../myapp/log/production.log My setup wbel rails-1.1.4 apache2.0.52 mod-ssl snippet from httpd.conf <VirtualHost *:443> ServerName localhost.localdomain DocumentRoot /var/www/html/myapp/public/ ErrorLog /var/www/html/myapp/log/apache.log SetEnv RAILS_ENV production RequestHeader set X_FORWARDED_PROTO ''https'' <Directory /var/www/html/myapp/public/> Options ExecCGI FollowSymLinks AllowOverride all Order allow,deny Allow from all </Directory> </VirtualHost> thanks for any help - marty
2006 Aug 13
0
ssl breaks rails app
.../html/myapp/log/production.log My setup wbel rails-1.1.4 apache2.0.52 mod-ssl snippet from httpd.conf <VirtualHost *:443> ServerName localhost.localdomain DocumentRoot /var/www/html/myapp/public/ ErrorLog /var/www/html/myapp/log/apache.log SetEnv RAILS_ENV production RequestHeader set X_FORWARDED_PROTO ''https'' <Directory /var/www/html/myapp/public/> Options ExecCGI FollowSymLinks AllowOverride all Order allow,deny Allow from all </Directory> </VirtualHost> thanks for any help - marty
2008 Mar 17
0
ssl_requirement problems - https --> http
...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 ''https'' SSLEngine on SSLProxyEngine On SSLCertificateFile /var/ssl/public_ssl.cert 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 fa...
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
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.
2006 Oct 20
5
Apache/Mongrel Question
I''m setting up a new server in anticipation of switching from lighttpd+fcgi. My application isn''t completely imported yet, so I don''t expect it to work. For instance right now when pulling up my app from localhost I get my Ruby/Rails MySQL error message. But when I pull it up from a remote computer I get a proxy error from Apache: ====================== Proxy Error
2006 Dec 29
9
Error : No protocol handler was valid for the URL...
Hi everybody, I just suscribe to the list because I have a problem using mongrel and mongrel_cluster... I setup a server (debian unstable wich provide apache 2.2.3 as a pakage) but I have an error when I try to access my application : ERROR 403 : Forbidden, You don''t have permission to access / on this server. When I check apache''s logs I found that : [warn] proxy: No