Good morning everyone, I am running apache 2.2.3 compiled from source and proxy load balancer as described on the mongrel site. I have a total of three sites, this setup works really well for two of them but for one of them, I keep getting "Forbidden" errors and this error in the apache logs: [warn] proxy: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule. This problem is starting to drive me nuts because I compared the setup of the other sites to this one and it is exactly the same, also if I did point the proxy to one of the other site, it works. So there''s something specific about this site in rails that tips it off but my knowledge there is limited. I''ve also checked the permission for the www-data user that my apache runs under and all checks out and is similar there. Any other areas I could look at? Here''s the virtual host config Listen 192.168.100.100 <VirtualHost 192.168.100.100> ServerName myprojects.warmlyyours.com DocumentRoot /var/www/approot/public <Directory "/var/www/approot/public"> Options FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> # Configure mongrel_cluster <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 BalancerMember http://127.0.0.1:8004 BalancerMember http://127.0.0.1:8005 BalancerMember http://127.0.0.1:8006 BalancerMember http://127.0.0.1:8007 BalancerMember http://127.0.0.1:8008 BalancerMember http://127.0.0.1:8009 BalancerMember http://127.0.0.1:8010 BalancerMember http://127.0.0.1:8011 </Proxy> RewriteEngine On RewriteRule ^(.*/)?.svn/ - [F,L] RewriteRule ^/$ /index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] </VirtualHost>
Hey there, On 11/8/06, Christian Billen <cbillen at warmlyyours.com> wrote:> > Good morning everyone, > > I am running apache 2.2.3 compiled from source and proxy load balancer as > described on the mongrel site. > > I have a total of three sites, this setup works really well for two of > them > but for one of them, I keep getting "Forbidden" errors and this error in > the > apache logs: > > [warn] proxy: No protocol handler was valid for the URL /. If you are > using > a DSO version of mod_proxy, make sure the proxy submodules are included in > the configuration using LoadModule. > > This problem is starting to drive me nuts because I compared the setup of > the other sites to this one and it is exactly the same, also if I did > point > the proxy to one of the other site, it works. > > So there''s something specific about this site in rails that tips it off > but > my knowledge there is limited. > > I''ve also checked the permission for the www-data user that my apache runs > under and all checks out and is similar there. > > Any other areas I could look at? > > > Here''s the virtual host config > > > Listen 192.168.100.100 > <VirtualHost 192.168.100.100> > ServerName myprojects.warmlyyours.com > DocumentRoot /var/www/approot/public > <Directory "/var/www/approot/public"> > Options FollowSymLinks > AllowOverride None > Order allow,deny > Allow from all > </Directory> > > # Configure mongrel_cluster > <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 > BalancerMember http://127.0.0.1:8004 > BalancerMember http://127.0.0.1:8005 > BalancerMember http://127.0.0.1:8006 > BalancerMember http://127.0.0.1:8007 > BalancerMember http://127.0.0.1:8008 > BalancerMember http://127.0.0.1:8009 > BalancerMember http://127.0.0.1:8010 > BalancerMember http://127.0.0.1:8011 > </Proxy> > > RewriteEngine On > > RewriteRule ^(.*/)?.svn/ - [F,L] > > RewriteRule ^/$ /index.html [QSA] > > RewriteRule ^([^.]+)$ $1.html [QSA] > > RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f > RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] > > </VirtualHost> > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20061109/a5a5fa47/attachment-0001.html
crap, sorry about my first reply slipped on the keyboard.... Anyways, i was trying to say... I had a simpler issue the other day. The first thing I did was make sure the file permissions on /var/www/approot/public were read by chown -R apache:apache /var/www/approot/public The next step was to make sure I my named hosts set up correctly. This is a little tricky because apache supports different types of virtual hosts and if you don''t keep things consistent it''s tricky to get it working. What i first did since I run fedora core, is make sure that the configuration in my /etc/httpd/conf/httpd.conf wrapped the default document root in a virutal host and did so by name. NameVirtualHost *:80 <VirtualHost *:80> ServerName bigbox ServerAlias bigbox Now the only part i had to make sure was correct is the rails config /etc/httpd/conf.d/rails.conf <Proxy balancer://rails-cluster> BalancerMember http://10.0.6.130:3000 BalancerMember http://10.0.6.130:3001 BalancerMember http://10.0.6.130:3002 BalancerMember http://10.0.6.130:3003 </Proxy> NameVirtualHost *:80 <VirtualHost *:80> ServerName rails-dev ServerAlias rails-dev ProxyPass / balancer://rails-cluster/ ProxyPassReverse / balancer://rails-cluster/ ErrorLog /var/log/httpd/rails/error_log TransferLog /var/log/httpd/rails/access_log </VirtualHost> Again, making sure my paths were all accessible read/write for the log dirs... Hope this helps... Lots of back and forth with the configuration usually before it''s working as desired... Good luck! -Todd On 11/9/06, Todd Fisher <todd.fisher at gmail.com> wrote:> > Hey there, > > > On 11/8/06, Christian Billen <cbillen at warmlyyours.com> wrote: > > > > Good morning everyone, > > > > I am running apache 2.2.3 compiled from source and proxy load balancer > > as > > described on the mongrel site. > > > > I have a total of three sites, this setup works really well for two of > > them > > but for one of them, I keep getting "Forbidden" errors and this error in > > the > > apache logs: > > > > [warn] proxy: No protocol handler was valid for the URL /. If you are > > using > > a DSO version of mod_proxy, make sure the proxy submodules are included > > in > > the configuration using LoadModule. > > > > This problem is starting to drive me nuts because I compared the setup > > of > > the other sites to this one and it is exactly the same, also if I did > > point > > the proxy to one of the other site, it works. > > > > So there''s something specific about this site in rails that tips it off > > but > > my knowledge there is limited. > > > > I''ve also checked the permission for the www-data user that my apache > > runs > > under and all checks out and is similar there. > > > > Any other areas I could look at? > > > > > > Here''s the virtual host config > > > > > > Listen 192.168.100.100 > > <VirtualHost 192.168.100.100 > > > ServerName myprojects.warmlyyours.com > > DocumentRoot /var/www/approot/public > > <Directory "/var/www/approot/public"> > > Options FollowSymLinks > > AllowOverride None > > Order allow,deny > > Allow from all > > </Directory> > > > > # Configure mongrel_cluster > > <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 > > BalancerMember http://127.0.0.1:8004 > > BalancerMember http://127.0.0.1:8005 > > BalancerMember http://127.0.0.1:8006 > > BalancerMember http://127.0.0.1:8007 > > BalancerMember http://127.0.0.1:8008 > > BalancerMember http://127.0.0.1:8009 > > BalancerMember http://127.0.0.1:8010 > > BalancerMember http://127.0.0.1:8011 > > </Proxy> > > > > RewriteEngine On > > > > RewriteRule ^(.*/)?.svn/ - [F,L] > > > > RewriteRule ^/$ /index.html [QSA] > > > > RewriteRule ^([^.]+)$ $1.html [QSA] > > > > RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f > > RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] > > > > > > </VirtualHost> > > > > _______________________________________________ > > Mongrel-users mailing list > > Mongrel-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/mongrel-users > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20061109/cfc00517/attachment.html