crap, sorry about my first reply slipped on the keyboard....<br><br>Anyways, i was trying to say... I had a simpler issue the other day.<br><br>The first thing I did was make sure the file permissions on <br>/var/www/approot/public
<br><br>were read by <br><br>chown -R apache:apache /var/www/approot/public<br><br>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.
<br><br>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.<br><br><pre><br>NameVirtualHost *:80
<br><br><VirtualHost *:80><br> ServerName bigbox<br> ServerAlias bigbox<br></pre><br>Now the only part i had to make sure was correct is the rails config<br><br>/etc/httpd/conf.d/rails.conf<br><pre><br><Proxy balancer://rails-cluster>
<br>BalancerMember <a href="http://10.0.6.130:3000">http://10.0.6.130:3000</a><br>BalancerMember <a href="http://10.0.6.130:3001">http://10.0.6.130:3001</a><br>BalancerMember <a href="http://10.0.6.130:3002">http://10.0.6.130:3002
</a><br>BalancerMember <a href="http://10.0.6.130:3003">http://10.0.6.130:3003</a><br></Proxy><br><br><br>NameVirtualHost *:80<br><br><VirtualHost *:80><br> ServerName rails-dev<br> ServerAlias rails-dev
<br> ProxyPass / balancer://rails-cluster/<br> ProxyPassReverse / balancer://rails-cluster/<br> ErrorLog /var/log/httpd/rails/error_log<br> TransferLog /var/log/httpd/rails/access_log<br></VirtualHost>
</pre><br>Again, making sure my paths were all accessible read/write for the log dirs...<br><br><br>Hope this helps... Lots of back and forth with the configuration usually before it's working as desired...<br><br>Good luck!
<br><br>-Todd<br><br><div><span class="gmail_quote">On 11/9/06, <b class="gmail_sendername">Todd Fisher</b> <<a href="mailto:todd.fisher@gmail.com">todd.fisher@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hey there,<div><span class="e" id="q_10ecfaa001d35b8b_1"><br><br><br><div><span class="gmail_quote">On 11/8/06, <b class="gmail_sendername">Christian Billen</b> <<a href="mailto:cbillen@warmlyyours.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
cbillen@warmlyyours.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Good morning everyone,<br><br>I am running apache 2.2.3 compiled from source and proxy load balancer as<br>described on the mongrel site.<br><br>I have a total of three sites, this setup works really well for two of them
<br>
but for one of them, I keep getting "Forbidden" errors and this error in the<br>apache logs:<br><br>[warn] proxy: No protocol handler was valid for the URL /. If you are using<br>a DSO version of mod_proxy, make sure the proxy submodules are included in
<br>the configuration using LoadModule.<br><br>This problem is starting to drive me nuts because I compared the setup of<br>the other sites to this one and it is exactly the same, also if I did point<br>the proxy to one of the other site, it works.
<br><br>So there's something specific about this site in rails that tips it off but<br>my knowledge there is limited.<br><br>I've also checked the permission for the www-data user that my apache runs<br>under and all checks out and is similar there.
<br><br>Any other areas I could look at?<br><br><br>Here's the virtual host config<br><br><br>Listen <a href="http://192.168.100.100" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.100.100
</a><br><VirtualHost <a href="http://192.168.100.100" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.100.100
</a>><br> ServerName <a href="http://myprojects.warmlyyours.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">myprojects.warmlyyours.com</a><br> DocumentRoot /var/www/approot/public<br> <Directory "/var/www/approot/public">
<br> Options FollowSymLinks
<br> AllowOverride None<br> Order allow,deny<br> Allow from all<br> </Directory><br><br> # Configure mongrel_cluster<br> <Proxy balancer://mongrel_cluster><br> BalancerMember <a href="http://127.0.0.1:8000" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://127.0.0.1:8000</a><br> BalancerMember <a href="http://127.0.0.1:8001" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://127.0.0.1:8001</a><br> BalancerMember <a href="http://127.0.0.1:8002" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://127.0.0.1:8002</a><br> BalancerMember <a href="http://127.0.0.1:8003" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://127.0.0.1:8003</a><br> BalancerMember <a href="http://127.0.0.1:8004" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://127.0.0.1:8004</a><br> BalancerMember <a href="http://127.0.0.1:8005" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://127.0.0.1:8005</a><br> BalancerMember <a href="http://127.0.0.1:8006" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://127.0.0.1:8006</a><br> BalancerMember <a href="http://127.0.0.1:8007" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://127.0.0.1:8007</a><br> BalancerMember <a href="http://127.0.0.1:8008" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://127.0.0.1:8008</a><br> BalancerMember <a href="http://127.0.0.1:8009" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://127.0.0.1:8009</a><br> BalancerMember <a href="http://127.0.0.1:8010" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://127.0.0.1:8010</a><br> BalancerMember <a href="http://127.0.0.1:8011" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://127.0.0.1:8011</a><br> </Proxy><br><br> RewriteEngine On
<br><br> RewriteRule ^(.*/)?.svn/ - [F,L]<br><br> RewriteRule ^/$ /index.html [QSA]<br><br> RewriteRule ^([^.]+)$ $1.html [QSA]<br><br> RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f<br> RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L]
<br><br></VirtualHost><br><br>_______________________________________________<br>Mongrel-users mailing list<br><a href="mailto:Mongrel-users@rubyforge.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Mongrel-users@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/mongrel-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://rubyforge.org/mailman/listinfo/mongrel-users</a><br></blockquote></div><br>
</span></div></blockquote></div><br>