[Mongrel] mongrel cluster (+ Apache 2.2.4 + proxy balancer) not redirecting correctly

Surendra Singhi singhi.surendra at gmail.com
Wed Jan 17 10:08:36 EST 2007


Hi,

On 1/17/07, ripta.pasay at lunarpages.com <ripta.pasay at lunarpages.com> wrote:
>
>
>         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_cluster>
>                 BalancerMember http://127.0.0.1:3000
>                 BalancerMember http://127.0.0.1:3001
>         </Proxy>




        RewriteEngine On
>
>         RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
>         RewriteCond %{SCRIPT_FILENAME} !maintenance.html
>
>         RewriteRule ^/$ /index.html [QSA]
>
>         RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
>         RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI}
> [P,QSA,L]
>
>         CustomLog logs/desq-access.log common
>         ErrorLog logs/desq-error.log
>
>         SSLEngine on
>         SSLCertificateFile /home/user/ssl.crt
>         SSLCertificateKeyFile /home/user/ssl.key
> </VirtualHost>
>
> <VirtualHost *:80>
>         ServerName server.domain.com
>         Redirect permanent / https://server.domain.com
> </VirtualHost>


I have heard missing backslashes can cause many problems, try  adding it
'/', i.e.,
https://server.domain.com/

Also, it will help to add it to the end of directories.

 DocumentRoot /home/desq/deployment/current/

HTH.

-- 
Surendra Singhi
http://ssinghi.kreeti.com, http://www.kreeti.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070117/7d323ee0/attachment.html 


More information about the Mongrel-users mailing list