*-- nachokb
 [image: Mi LinkedIn] <http://www.linkedin.com/in/icarrera>  [image:
MSN] [image:
Google Talk] [email protected] <xmpp:[email protected]>
*



2008/12/30 Franco Brusatti <[email protected]>

> Gracias Nacho, Nelson por la rapida respuesta,
>
>   Nelson:
>      si intento ingresar a mano por el url lo mismo salta el filter
> 'ensure_proper_protocol' redirigiendo


fijate que el te puso la url con "https", NO "http", confirmanos que lo
probaste con "httpS"...


>
>
>   Nacho:
>      Estoy usando apache, y la verdad



> no se me había ocurrido que el problema puede que tenga mal configurado
> apache :P, esta es la configuración, notá que al principio estan los
> tutoriales que seguí para tener (o creer que tengo) todo funcionando:
>
> # Based on
> http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/
> # SSL setup taken from
> http://www.williambharding.com/blog/rails/ultimate-guide-to-setup-ssl-on-rails-and-apache-2-with-ubuntu-seasoning/
> #
> <Proxy balancer://mongrel_cluster>
>   BalancerMember http://127.0.0.1:8000
>   BalancerMember http://127.0.0.1:8001
>   BalancerMember http://127.0.0.1:8002
>   BalancerMember http://127.0.0.1:8003
>
>   AllowOverride AuthConfig
>   AuthType Basic
>   AuthName "Top Secret -- By Invitation Only"
>   AuthUserFile /etc/apache2/passwords
>   Require user glowproducts
> </Proxy>
>
>
> NameVirtualHost *:80
> <VirtualHost *:80>
>   ServerName www.glowarehouse.com
>   ServerAlias www.glowarehouse.com
>
>   Include /etc/apache2/sites-available/app.custom
>   Include /etc/apache2/sites-available/app.common
>
>   ProxyPass / balancer://mongrel_cluster/
>   ProxyPassReverse / balancer://mongrel_cluster/
>
>   ErrorLog /mnt/log/apache2/error.log
>   LogLevel warn
>
>   CustomLog /mnt/log/apache2/access.log combined
>
>
>   # Redirect all glowarehouse.com/ request sto www.glowarehouse.com
>   Options +FollowSymLinks
>   RewriteEngine on
>   RewriteCond %{HTTP_HOST} ^glowarehouse\.com
>   RewriteRule ^(.*)$ http://www.glowarehouse.com$1 [R=301,L]
> </VirtualHost>
>
>
> <VirtualHost *:443>
>   Include /etc/apache2/sites-available/app.custom
>   Include /etc/apache2/sites-available/app.common
>
>   ProxyPass / balancer://mongrel_cluster/
>   ProxyPassReverse / balancer://mongrel_cluster/
>
>   ErrorLog /mnt/log/apache2/error.log
>   LogLevel warn
>
>   CustomLog /mnt/log/apache2/access.log combined
>
>   SSLEngine on
>   SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
>   SSLCertificateFile /etc/ssl/certs/glowarehouse.com.crt
>   SSLCertificateKeyFile /etc/ssl/private/glowarehouse.com.key
>
>   # Used by Rails. Mentioned in all the Rails SSL tutorials.
>   RequestHeader set X_FORWARDED_PROTO "https"
>
>
>   # Redirect all glowarehouse.com/ request sto www.glowarehouse.com
>   #Options +FollowSymLinks
>   #RewriteEngine on
>   #RewriteCond %{HTTP_HOST} ^glowarehouse\.com
>   #RewriteRule ^(.*)$ http://www.glowarehouse.com$1 [R=301,L]
> </VirtualHost>
>
>
> <Location /mongrel_cluster>
>    SetHandler mongrel_cluster
> </Location>
>
>
> _______________________________________________
> Ruby mailing list
> [email protected]
> http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar
>
>
_______________________________________________
Ruby mailing list
[email protected]
http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar

Responder a