I am using Apache2.2 + mod_proxy_balancer + mongrel setup and my mongrel.conf file(for apache is like this) 2 3 <Proxy balancer://mongrel_cluster> 4 BalancerMember http://127.0.0.1:9000 5 BalancerMember http://127.0.0.1:9001 6 BalancerMember http://127.0.0.1:9002 7 </Proxy> 8 9 <VirtualHost *> 10 ServerAdmin rags at fasia.com 11 ServerName *.foobar.com 12 ServerAlias foobar.com 13 ProxyPass / balancer://mongrel_cluster/ 14 # ProxyPassReverse / balancer://mongrel_cluster/ 15 # ErrorLog /usr/local/apache2/logs/mon.log 16 # CustomLog /var/log/apache/apache_access_log combined 17 </VirtualHost> 18 19 <Location /balancer-manager> 20 SetHandler balancer-manager 21 </Location> Now, i get pages for foobar.com allright, but if i try to view pages for us.foobar.com, i get <b>Forbidden</b> Error. Though, when i manually enter, http://us.foobar.com:9001, then i get corrpesponding page for that country allright. So, my wild guess is mod_proxy_balancer is messing things a little. Any clues? -- nothing much to talk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060725/b4b8d15e/attachment.html
Any clues? As for i have same rails app generating pages for other countries also... I do some url checks in my start_controller to ensure the country flags work correctly. Is it because, mongrel can''t handle request_uri correctly? On 7/25/06, hemant <gethemant at gmail.com> wrote:> > I am using Apache2.2 + mod_proxy_balancer + mongrel setup and my > mongrel.conf file(for apache is like this) > > > 2 > 3 <Proxy balancer://mongrel_cluster> > 4 BalancerMember http://127.0.0.1:9000 > 5 BalancerMember http://127.0.0.1:9001 > 6 BalancerMember http://127.0.0.1:9002 > 7 </Proxy> > 8 > 9 <VirtualHost *> > 10 ServerAdmin rags at fasia.com > 11 ServerName *.foobar.com > 12 ServerAlias foobar.com > 13 ProxyPass / balancer://mongrel_cluster/ > 14 # ProxyPassReverse / balancer://mongrel_cluster/ > 15 # ErrorLog /usr/local/apache2/logs/mon.log > 16 # CustomLog /var/log/apache/apache_access_log combined > 17 </VirtualHost> > 18 > 19 <Location /balancer-manager> > 20 SetHandler balancer-manager > 21 </Location> > > > Now, i get pages for foobar.com allright, but if i try to view pages for > us.foobar.com, i get <b>Forbidden</b> Error. > Though, when i manually enter, http://us.foobar.com:9001 , then i get > corrpesponding page for that country allright. > > So, my wild guess is mod_proxy_balancer is messing things a little. Any > clues? > > -- > nothing much to talk >-- nothing much to talk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060727/cd81e210/attachment.html
> > 9 <VirtualHost *> > > 10 ServerAdmin rags at fasia.com > > 11 ServerName *.foobar.com > > 12 ServerAlias foobar.com > > >Give this a shot: ServerName foobar.com ServerAlias *.foobar.com this should work. -- Andrew Stone -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060727/0d5cb26c/attachment.html
Yeah... thanks it kinda works... but there seems to be a problem with urls though....got to fix my own code i guess. On 7/27/06, Andrew Stone <stonelists at gmail.com> wrote:> > 9 <VirtualHost *> > > > 10 ServerAdmin rags at fasia.com > > > 11 ServerName *.foobar.com > > > 12 ServerAlias foobar.com > > > > > > > Give this a shot: > > ServerName foobar.com > ServerAlias *.foobar.com > > this should work. > > -- > Andrew Stone > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > >-- nothing much to talk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060727/0e4754d6/attachment.html