Hello everyone,
I can’t seem to figure out why apache is continually giving me a 403
forbidden page whilst trying to access my rails application. The
mongrel clusters are working fine as I can access them through the web
if I comment out the address line in my mongrel config file.
Here is my httpd conf:
<VirtualHost *:80>
ServerName alpha.domain.com
DocumentRoot /home/domain/current/public/
<Directory “/home/domain/current/public/”>
AllowOverride All
Options +FollowSymLinks
ProxyPass / balancer://mongrel_cluster/
ProxyPassReverse / balancer://mongrel_cluster/
RewriteEngine On
Rewrite index to check for static
RewriteRule ^/$ /index.html [QSA]
Rewrite to check for Rails cached page
RewriteRule ^([^.]+)$ $1.html [QSA]
Redirect all non-static requests to cluster
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI}
[P,QSA,L]
ErrorLog /home/domain/current/log/errors.log
CustomLog /home/domain/current/log/log.log combined
RewriteLogLevel 9
RewriteLog /home/domain/current/log/rewrite.log
While looking at the rewrite log, I see the following:
http://pastie.caboo.se/44521
The error log says:
[Sat Mar 03 19:00:01 2007] [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 LoadMo
dule.
[Sat Mar 03 19:00:01 2007] [warn] proxy: No protocol handler was valid
for the URL /403.shtml. If you are using a DSO version of mod_proxy,
make sure the proxy submodules are included in the configuration usi
ng LoadModule.
I am loading proxy_module and mod_proxy_balancer through my conf file
for apache. I am suspecting mod_proxy_http to be causing this as it
isn’t specifically loaded, but upon speaking to my host, they informed
me that proxy_module loads already mod_proxy_http.
Thanks!