You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk> on 2008/07/21 20:59:15 UTC

[users@httpd] mod proxy & DSO errors(403 forbidden)?

I get a error about DSO(stating that I have to enable a proxy 
submodule), it's there for all sub sites, root passes without problems. 
I have enabled all the proxy modules. Whats wrong?



Error msg:
[Mon Jul 21 20:40:54 2008] [notice] Apache/2.2.3 (Ubuntu) proxy_html/2.5 
mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations
...
....
[Mon Jul 21 20:45:59 2008] [warn] proxy: No protocol handler was valid 
for the URL /static/f5ffa9029c78c03cdf54c3b0d4999417-thumb.jpg. If you 
are using a DSO version of mod_proxy, make sure the proxy submodules are 
included in the configuration using LoadModule.
[Mon Jul 21 20:45:59 2008] [warn] proxy: No protocol handler was valid 
for the URL /css/images/pages-forward.gif. If you are using a DSO 
version of mod_proxy, make sure the proxy submodules are included in the 
configuration using LoadModule.
Access Log:
ip - - [21/Jul/2008:20:45:59 +0200] "GET 
/static/f5ffa9029c78c03cdf54c3b0d4999417-thumb.jpg HTTP/1.1" 403 375 
"http://domain.net/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; 
rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16"
ip - - [21/Jul/2008:20:45:59 +0200] "GET /css/images/pages-forward.gif 
HTTP/1.1" 403 354 "http://domain.net/" "Mozilla/5.0 (Macintosh; U; Intel 
Mac OS X; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16"


heres the contents of mods-enabled:
alias.load          authz_groupfile.load  cache.load  dir.load         
mime.load         proxy_balancer.load  proxy_http.load  status.load
auth_basic.load     authz_host.load       cgid.conf   disk_cache.load  
negotiation.load  proxy_connect.load   setenvif.load
authn_file.load     authz_user.load       cgid.load   env.load         
proxy.load        proxy_ftp.load       ssl.conf
authz_default.load  autoindex.load        dir.conf    mem_cache.load   
proxy_ajp.load    proxy_html.load      ssl.load


vhost config:

NameVirtualHost *:80

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined
ServerSignature On

<VirtualHost *:80>
        ProxyRequests off
        ServerName domain.net

        ProxyPass / balancer://cluster 
stickysession=JSESSIONID|jsessionid nofailover=On
        ProxyPassReverse / balancer://cluster

        <Proxy *>
                Order Deny,Allow
                 Allow from all
        </Proxy>


        <Proxy balancer://cluster>
                BalancerMember http://tomcatserver.net:8080 route=jvm1 
loadfactor=5
        </Proxy>
        <Location /balancer-manager>
                SetHandler balancer-manager
                Order deny,allow
                Allow from all
        </Location>
</VirtualHost>



-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod proxy & DSO errors(403 forbidden)?

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
Ahh, so you are saying it should work even without the load module 
stuff? What I figured too...

André Warnier wrote:
> Nino Saturnino Martinez Vazquez Wael wrote:
>> Sure here it are, I get the warnings since I also tried adding the 
>> loadmodule directive to the vhost config:
>>
> That would not work anyway.  LoadModule is a server-level directive.
> A VirtualHost is not a separate Apache engine or instance, it's just a 
> way in which Apache reacts to a given request using a given 
> configuration.
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server 
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod proxy & DSO errors(403 forbidden)?

Posted by André Warnier <aw...@ice-sa.com>.
Nino Saturnino Martinez Vazquez Wael wrote:
> Sure here it are, I get the warnings since I also tried adding the 
> loadmodule directive to the vhost config:
> 
That would not work anyway.  LoadModule is a server-level directive.
A VirtualHost is not a separate Apache engine or instance, it's just a 
way in which Apache reacts to a given request using a given configuration.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod proxy & DSO errors(403 forbidden)?

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
Okay seems it were a mismatch in setup, we got it working now..

Difference were:
// not working, for sub sites
    ProxyPass / balancer://cluster stickysession=JSESSIONID|jsessionid 
nofailover=On
// below are working, for sub sites
    ProxyPass / balancer://cluster/ stickysession=JSESSIONID|jsessionid 
nofailover=On


Nino Saturnino Martinez Vazquez Wael wrote:
> Sure here it are, I get the warnings since I also tried adding the 
> loadmodule directive to the vhost config:
>
> oot@myserver:~# apache2ctl -M
> [Tue Jul 22 20:16:52 2008] [warn] module proxy_module is already 
> loaded, skipping
> [Tue Jul 22 20:16:52 2008] [warn] module proxy_balancer_module is 
> already loaded, skipping
> [Tue Jul 22 20:16:52 2008] [warn] module proxy_connect_module is 
> already loaded, skipping
> [Tue Jul 22 20:16:52 2008] [warn] module proxy_ftp_module is already 
> loaded, skipping
> [Tue Jul 22 20:16:52 2008] [warn] module proxy_html_module is already 
> loaded, skipping
> [Tue Jul 22 20:16:52 2008] [warn] module proxy_http_module is already 
> loaded, skipping
> Loaded Modules:
> core_module (static)
> log_config_module (static)
> logio_module (static)
> mpm_worker_module (static)
> http_module (static)
> so_module (static)
> alias_module (shared)
> auth_basic_module (shared)
> authn_file_module (shared)
> authz_default_module (shared)
> authz_groupfile_module (shared)
> authz_host_module (shared)
> authz_user_module (shared)
> autoindex_module (shared)
> cache_module (shared)
> cgid_module (shared)
> dir_module (shared)
> disk_cache_module (shared)
> env_module (shared)
> mem_cache_module (shared)
> mime_module (shared)
> negotiation_module (shared)
> proxy_module (shared)
> proxy_ajp_module (shared)
> proxy_balancer_module (shared)
> proxy_connect_module (shared)
> proxy_ftp_module (shared)
> proxy_html_module (shared)
> proxy_http_module (shared)
> setenvif_module (shared)
> status_module (shared)
> Syntax OK
> root@myserver:~#
>
>
> Frank Gingras wrote:
>> Nino,
>>
>> Your error definitely indicates that it's not loaded. Let's run 
>> apache2ctl / apache2 -M, and see what it says.
>>
>> Nino Saturnino Martinez Vazquez Wael wrote:
>>> Hi Frank
>>>
>>> Thanks for the quick answer, but does'nt it mean when the module are 
>>> in mods-enabled, it are loaded? Please see the contents of 
>>> mods-enabled below..
>>>
>>> Frank Gingras wrote:
>>>> Nino,
>>>>
>>>> Please load the mod_proxy_html module.
>>>>
>>>> Nino Saturnino Martinez Vazquez Wael wrote:
>>>>> I get a error about DSO(stating that I have to enable a proxy 
>>>>> submodule), it's there for all sub sites, root passes without 
>>>>> problems. I have enabled all the proxy modules. Whats wrong?
>>>>>
>>>>>
>>>>>
>>>>> Error msg:
>>>>> [Mon Jul 21 20:40:54 2008] [notice] Apache/2.2.3 (Ubuntu) 
>>>>> proxy_html/2.5 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming 
>>>>> normal operations
>>>>> ...
>>>>> ....
>>>>> [Mon Jul 21 20:45:59 2008] [warn] proxy: No protocol handler was 
>>>>> valid for the URL 
>>>>> /static/f5ffa9029c78c03cdf54c3b0d4999417-thumb.jpg. If you are 
>>>>> using a DSO version of mod_proxy, make sure the proxy submodules 
>>>>> are included in the configuration using LoadModule.
>>>>> [Mon Jul 21 20:45:59 2008] [warn] proxy: No protocol handler was 
>>>>> valid for the URL /css/images/pages-forward.gif. If you are using 
>>>>> a DSO version of mod_proxy, make sure the proxy submodules are 
>>>>> included in the configuration using LoadModule.
>>>>> Access Log:
>>>>> ip - - [21/Jul/2008:20:45:59 +0200] "GET 
>>>>> /static/f5ffa9029c78c03cdf54c3b0d4999417-thumb.jpg HTTP/1.1" 403 
>>>>> 375 "http://domain.net/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS 
>>>>> X; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16"
>>>>> ip - - [21/Jul/2008:20:45:59 +0200] "GET 
>>>>> /css/images/pages-forward.gif HTTP/1.1" 403 354 
>>>>> "http://domain.net/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; 
>>>>> en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16"
>>>>>
>>>>>
>>>>> heres the contents of mods-enabled:
>>>>> alias.load          authz_groupfile.load  cache.load  
>>>>> dir.load         mime.load         proxy_balancer.load  
>>>>> proxy_http.load  status.load
>>>>> auth_basic.load     authz_host.load       cgid.conf   
>>>>> disk_cache.load  negotiation.load  proxy_connect.load   setenvif.load
>>>>> authn_file.load     authz_user.load       cgid.load   
>>>>> env.load         proxy.load        proxy_ftp.load       ssl.conf
>>>>> authz_default.load  autoindex.load        dir.conf    
>>>>> mem_cache.load   proxy_ajp.load    proxy_html.load      ssl.load
>>>>>
>>>>>
>>>>> vhost config:
>>>>>
>>>>> NameVirtualHost *:80
>>>>>
>>>>> ErrorLog /var/log/apache2/error.log
>>>>>
>>>>> # Possible values include: debug, info, notice, warn, error, crit,
>>>>> # alert, emerg.
>>>>> LogLevel warn
>>>>>
>>>>> CustomLog /var/log/apache2/access.log combined
>>>>> ServerSignature On
>>>>>
>>>>> <VirtualHost *:80>
>>>>>        ProxyRequests off
>>>>>        ServerName domain.net
>>>>>
>>>>>        ProxyPass / balancer://cluster 
>>>>> stickysession=JSESSIONID|jsessionid nofailover=On
>>>>>        ProxyPassReverse / balancer://cluster
>>>>>
>>>>>        <Proxy *>
>>>>>                Order Deny,Allow
>>>>>                 Allow from all
>>>>>        </Proxy>
>>>>>
>>>>>
>>>>>        <Proxy balancer://cluster>
>>>>>                BalancerMember http://tomcatserver.net:8080 
>>>>> route=jvm1 loadfactor=5
>>>>>        </Proxy>
>>>>>        <Location /balancer-manager>
>>>>>                SetHandler balancer-manager
>>>>>                Order deny,allow
>>>>>                Allow from all
>>>>>        </Location>
>>>>> </VirtualHost>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> The official User-To-User support forum of the Apache HTTP Server 
>>>> Project.
>>>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server 
>> Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod proxy & DSO errors(403 forbidden)?

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
Sure here it are, I get the warnings since I also tried adding the 
loadmodule directive to the vhost config:

oot@myserver:~# apache2ctl -M
[Tue Jul 22 20:16:52 2008] [warn] module proxy_module is already loaded, 
skipping
[Tue Jul 22 20:16:52 2008] [warn] module proxy_balancer_module is 
already loaded, skipping
[Tue Jul 22 20:16:52 2008] [warn] module proxy_connect_module is already 
loaded, skipping
[Tue Jul 22 20:16:52 2008] [warn] module proxy_ftp_module is already 
loaded, skipping
[Tue Jul 22 20:16:52 2008] [warn] module proxy_html_module is already 
loaded, skipping
[Tue Jul 22 20:16:52 2008] [warn] module proxy_http_module is already 
loaded, skipping
Loaded Modules:
 core_module (static)
 log_config_module (static)
 logio_module (static)
 mpm_worker_module (static)
 http_module (static)
 so_module (static)
 alias_module (shared)
 auth_basic_module (shared)
 authn_file_module (shared)
 authz_default_module (shared)
 authz_groupfile_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 cache_module (shared)
 cgid_module (shared)
 dir_module (shared)
 disk_cache_module (shared)
 env_module (shared)
 mem_cache_module (shared)
 mime_module (shared)
 negotiation_module (shared)
 proxy_module (shared)
 proxy_ajp_module (shared)
 proxy_balancer_module (shared)
 proxy_connect_module (shared)
 proxy_ftp_module (shared)
 proxy_html_module (shared)
 proxy_http_module (shared)
 setenvif_module (shared)
 status_module (shared)
Syntax OK
root@myserver:~#


Frank Gingras wrote:
> Nino,
>
> Your error definitely indicates that it's not loaded. Let's run 
> apache2ctl / apache2 -M, and see what it says.
>
> Nino Saturnino Martinez Vazquez Wael wrote:
>> Hi Frank
>>
>> Thanks for the quick answer, but does'nt it mean when the module are 
>> in mods-enabled, it are loaded? Please see the contents of 
>> mods-enabled below..
>>
>> Frank Gingras wrote:
>>> Nino,
>>>
>>> Please load the mod_proxy_html module.
>>>
>>> Nino Saturnino Martinez Vazquez Wael wrote:
>>>> I get a error about DSO(stating that I have to enable a proxy 
>>>> submodule), it's there for all sub sites, root passes without 
>>>> problems. I have enabled all the proxy modules. Whats wrong?
>>>>
>>>>
>>>>
>>>> Error msg:
>>>> [Mon Jul 21 20:40:54 2008] [notice] Apache/2.2.3 (Ubuntu) 
>>>> proxy_html/2.5 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming 
>>>> normal operations
>>>> ...
>>>> ....
>>>> [Mon Jul 21 20:45:59 2008] [warn] proxy: No protocol handler was 
>>>> valid for the URL 
>>>> /static/f5ffa9029c78c03cdf54c3b0d4999417-thumb.jpg. If you are 
>>>> using a DSO version of mod_proxy, make sure the proxy submodules 
>>>> are included in the configuration using LoadModule.
>>>> [Mon Jul 21 20:45:59 2008] [warn] proxy: No protocol handler was 
>>>> valid for the URL /css/images/pages-forward.gif. If you are using a 
>>>> DSO version of mod_proxy, make sure the proxy submodules are 
>>>> included in the configuration using LoadModule.
>>>> Access Log:
>>>> ip - - [21/Jul/2008:20:45:59 +0200] "GET 
>>>> /static/f5ffa9029c78c03cdf54c3b0d4999417-thumb.jpg HTTP/1.1" 403 
>>>> 375 "http://domain.net/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS 
>>>> X; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16"
>>>> ip - - [21/Jul/2008:20:45:59 +0200] "GET 
>>>> /css/images/pages-forward.gif HTTP/1.1" 403 354 
>>>> "http://domain.net/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; 
>>>> en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16"
>>>>
>>>>
>>>> heres the contents of mods-enabled:
>>>> alias.load          authz_groupfile.load  cache.load  
>>>> dir.load         mime.load         proxy_balancer.load  
>>>> proxy_http.load  status.load
>>>> auth_basic.load     authz_host.load       cgid.conf   
>>>> disk_cache.load  negotiation.load  proxy_connect.load   setenvif.load
>>>> authn_file.load     authz_user.load       cgid.load   
>>>> env.load         proxy.load        proxy_ftp.load       ssl.conf
>>>> authz_default.load  autoindex.load        dir.conf    
>>>> mem_cache.load   proxy_ajp.load    proxy_html.load      ssl.load
>>>>
>>>>
>>>> vhost config:
>>>>
>>>> NameVirtualHost *:80
>>>>
>>>> ErrorLog /var/log/apache2/error.log
>>>>
>>>> # Possible values include: debug, info, notice, warn, error, crit,
>>>> # alert, emerg.
>>>> LogLevel warn
>>>>
>>>> CustomLog /var/log/apache2/access.log combined
>>>> ServerSignature On
>>>>
>>>> <VirtualHost *:80>
>>>>        ProxyRequests off
>>>>        ServerName domain.net
>>>>
>>>>        ProxyPass / balancer://cluster 
>>>> stickysession=JSESSIONID|jsessionid nofailover=On
>>>>        ProxyPassReverse / balancer://cluster
>>>>
>>>>        <Proxy *>
>>>>                Order Deny,Allow
>>>>                 Allow from all
>>>>        </Proxy>
>>>>
>>>>
>>>>        <Proxy balancer://cluster>
>>>>                BalancerMember http://tomcatserver.net:8080 
>>>> route=jvm1 loadfactor=5
>>>>        </Proxy>
>>>>        <Location /balancer-manager>
>>>>                SetHandler balancer-manager
>>>>                Order deny,allow
>>>>                Allow from all
>>>>        </Location>
>>>> </VirtualHost>
>>>>
>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> The official User-To-User support forum of the Apache HTTP Server 
>>> Project.
>>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server 
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod proxy & DSO errors(403 forbidden)?

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
I posted my full vhost config, if I hit tomcat directly everything 
works, but I agree  there are something fishy regarding "sub" sites, like
 

/static/f5ffa9029c78c03cdf54c3b0d4999417-thumb.jpg

I've also tried adding this : ProxyPass /static balancer://cluster/static

It does not work. Another thing though are that if I remove the loadbalancer configuration I get an 502 (bad gateway or proxy)

error.log
[Tue Jul 22 20:43:01 2008] [error] [client client] proxy: DNS lookup failure for: beta-1.net:8080css returned by /css/images/pages-forward.gif, referer: http://apache2server.com/

notice this part: "beta-1.net:8080css" , thats not right. So whats wrong with this? I have something similar working another place..


Vhost config:

<VirtualHost *:80>
ProxyPreserveHost on
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so

LoadModule proxy_balancer_module /usr/lib/apache2/modules/mod_proxy_balancer.so
LoadModule proxy_connect_module /usr/lib/apache2/modules/mod_proxy_connect.so
LoadModule proxy_ftp_module /usr/lib/apache2/modules/mod_proxy_ftp.so
LoadModule proxy_html_module /usr/lib/apache2/modules/mod_proxy_html.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so

        ProxyRequests off
        ServerName servername.net
        ServerAlias *

        ProxyPass / http://beta-1.net:8080
        ProxyPass /js http://beta-1.net:8080/js
	ProxyPass /css http://beta-1.net:8080/css

        <Proxy *>
                Order Deny,Allow
                 Allow from all
        </Proxy>


        <Location /balancer-manager>
                SetHandler balancer-manager                      
                Order deny,allow
                Allow from all
        </Location>

</VirtualHost>











Eric Covener wrote:
> On Tue, Jul 22, 2008 at 9:32 AM, Frank Gingras
> <fr...@gmail.com> wrote:
>   
>> Nino,
>>
>> Your error definitely indicates that it's not loaded. Let's run apache2ctl /
>> apache2 -M, and see what it says.
>>
>>     
>>> No protocol handler was valid for the URL /static/f5ffa9029c78c03cdf54c3b0d4999417-thumb.jpg.
>>>       
>
> Wouldn't that URL normally have a protocol at the front of it? Are you
> proxying "to" something that isn't a full URL?
>
>
>   

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod proxy & DSO errors(403 forbidden)?

Posted by Eric Covener <co...@gmail.com>.
On Tue, Jul 22, 2008 at 9:32 AM, Frank Gingras
<fr...@gmail.com> wrote:
> Nino,
>
> Your error definitely indicates that it's not loaded. Let's run apache2ctl /
> apache2 -M, and see what it says.
>
>>No protocol handler was valid for the URL /static/f5ffa9029c78c03cdf54c3b0d4999417-thumb.jpg.

Wouldn't that URL normally have a protocol at the front of it? Are you
proxying "to" something that isn't a full URL?


-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod proxy & DSO errors(403 forbidden)?

Posted by Frank Gingras <fr...@gmail.com>.
Nino,

Your error definitely indicates that it's not loaded. Let's run 
apache2ctl / apache2 -M, and see what it says.

Nino Saturnino Martinez Vazquez Wael wrote:
> Hi Frank
>
> Thanks for the quick answer, but does'nt it mean when the module are 
> in mods-enabled, it are loaded? Please see the contents of 
> mods-enabled below..
>
> Frank Gingras wrote:
>> Nino,
>>
>> Please load the mod_proxy_html module.
>>
>> Nino Saturnino Martinez Vazquez Wael wrote:
>>> I get a error about DSO(stating that I have to enable a proxy 
>>> submodule), it's there for all sub sites, root passes without 
>>> problems. I have enabled all the proxy modules. Whats wrong?
>>>
>>>
>>>
>>> Error msg:
>>> [Mon Jul 21 20:40:54 2008] [notice] Apache/2.2.3 (Ubuntu) 
>>> proxy_html/2.5 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming 
>>> normal operations
>>> ...
>>> ....
>>> [Mon Jul 21 20:45:59 2008] [warn] proxy: No protocol handler was 
>>> valid for the URL 
>>> /static/f5ffa9029c78c03cdf54c3b0d4999417-thumb.jpg. If you are using 
>>> a DSO version of mod_proxy, make sure the proxy submodules are 
>>> included in the configuration using LoadModule.
>>> [Mon Jul 21 20:45:59 2008] [warn] proxy: No protocol handler was 
>>> valid for the URL /css/images/pages-forward.gif. If you are using a 
>>> DSO version of mod_proxy, make sure the proxy submodules are 
>>> included in the configuration using LoadModule.
>>> Access Log:
>>> ip - - [21/Jul/2008:20:45:59 +0200] "GET 
>>> /static/f5ffa9029c78c03cdf54c3b0d4999417-thumb.jpg HTTP/1.1" 403 375 
>>> "http://domain.net/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; 
>>> en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16"
>>> ip - - [21/Jul/2008:20:45:59 +0200] "GET 
>>> /css/images/pages-forward.gif HTTP/1.1" 403 354 "http://domain.net/" 
>>> "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.16) 
>>> Gecko/20080702 Firefox/2.0.0.16"
>>>
>>>
>>> heres the contents of mods-enabled:
>>> alias.load          authz_groupfile.load  cache.load  
>>> dir.load         mime.load         proxy_balancer.load  
>>> proxy_http.load  status.load
>>> auth_basic.load     authz_host.load       cgid.conf   
>>> disk_cache.load  negotiation.load  proxy_connect.load   setenvif.load
>>> authn_file.load     authz_user.load       cgid.load   
>>> env.load         proxy.load        proxy_ftp.load       ssl.conf
>>> authz_default.load  autoindex.load        dir.conf    
>>> mem_cache.load   proxy_ajp.load    proxy_html.load      ssl.load
>>>
>>>
>>> vhost config:
>>>
>>> NameVirtualHost *:80
>>>
>>> ErrorLog /var/log/apache2/error.log
>>>
>>> # Possible values include: debug, info, notice, warn, error, crit,
>>> # alert, emerg.
>>> LogLevel warn
>>>
>>> CustomLog /var/log/apache2/access.log combined
>>> ServerSignature On
>>>
>>> <VirtualHost *:80>
>>>        ProxyRequests off
>>>        ServerName domain.net
>>>
>>>        ProxyPass / balancer://cluster 
>>> stickysession=JSESSIONID|jsessionid nofailover=On
>>>        ProxyPassReverse / balancer://cluster
>>>
>>>        <Proxy *>
>>>                Order Deny,Allow
>>>                 Allow from all
>>>        </Proxy>
>>>
>>>
>>>        <Proxy balancer://cluster>
>>>                BalancerMember http://tomcatserver.net:8080 
>>> route=jvm1 loadfactor=5
>>>        </Proxy>
>>>        <Location /balancer-manager>
>>>                SetHandler balancer-manager
>>>                Order deny,allow
>>>                Allow from all
>>>        </Location>
>>> </VirtualHost>
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server 
>> Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod proxy & DSO errors(403 forbidden)?

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
Okay so even though I think that mod http are loaded i've added the load 
module statement to my vhost config:

LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so

LoadModule proxy_balancer_module 
/usr/lib/apache2/modules/mod_proxy_balancer.so
LoadModule proxy_connect_module 
/usr/lib/apache2/modules/mod_proxy_connect.so
LoadModule proxy_ftp_module /usr/lib/apache2/modules/mod_proxy_ftp.so
LoadModule proxy_html_module /usr/lib/apache2/modules/mod_proxy_html.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so

error.log:
[Tue Jul 22 12:22:49 2008] [warn] module proxy_module is already loaded, 
skipping
[Tue Jul 22 12:22:49 2008] [warn] module proxy_balancer_module is 
already loaded, skipping
[Tue Jul 22 12:22:49 2008] [warn] module proxy_connect_module is already 
loaded, skipping
[Tue Jul 22 12:22:49 2008] [warn] module proxy_ftp_module is already 
loaded, skipping
[Tue Jul 22 12:22:49 2008] [warn] module proxy_html_module is already 
loaded, skipping
[Tue Jul 22 12:22:49 2008] [warn] module proxy_http_module is already 
loaded, skipping
[Tue Jul 22 12:22:49 2008] [notice] Apache/2.2.3 (Ubuntu) proxy_html/2.5 
configured -- resuming normal operations

And I still get(error.log):
[Tue Jul 22 12:23:37 2008] [warn] proxy: No protocol handler was valid 
for the URL /css/styles.css. If you are using a DSO version of 
mod_proxy, make sure the proxy submodules are included in the 
configuration using LoadModule.
[Tue Jul 22 12:23:37 2008] [warn] proxy: No protocol handler was valid 
for the URL /css/screen.css. If you are using a DSO version of 
mod_proxy, make sure the proxy submodules are included in the 
configuration using LoadModule.
access.log:
myip - - [22/Jul/2008:12:23:41 +0200] "GET 
/static/662b4ead78405cf75daa2df0504153a0-thumb.jpg HTTP/1.1" 403 346 
"http://domain.net/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; 
rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16"
myip - - [22/Jul/2008:12:23:41 +0200] "GET 
/static/af3ce98ea4f5150e902946d84c63d49c-thumb.jpg HTTP/1.1" 403 346 
"http://domain.net/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; 
rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16"





Nino Saturnino Martinez Vazquez Wael wrote:
> Hi Frank
>
> Thanks for the quick answer, but does'nt it mean when the module are 
> in mods-enabled, it are loaded? Please see the contents of 
> mods-enabled below..
>
> Frank Gingras wrote:
>> Nino,
>>
>> Please load the mod_proxy_html module.
>>
>> Nino Saturnino Martinez Vazquez Wael wrote:
>>> I get a error about DSO(stating that I have to enable a proxy 
>>> submodule), it's there for all sub sites, root passes without 
>>> problems. I have enabled all the proxy modules. Whats wrong?
>>>
>>>
>>>
>>> Error msg:
>>> [Mon Jul 21 20:40:54 2008] [notice] Apache/2.2.3 (Ubuntu) 
>>> proxy_html/2.5 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming 
>>> normal operations
>>> ...
>>> ....
>>> [Mon Jul 21 20:45:59 2008] [warn] proxy: No protocol handler was 
>>> valid for the URL 
>>> /static/f5ffa9029c78c03cdf54c3b0d4999417-thumb.jpg. If you are using 
>>> a DSO version of mod_proxy, make sure the proxy submodules are 
>>> included in the configuration using LoadModule.
>>> [Mon Jul 21 20:45:59 2008] [warn] proxy: No protocol handler was 
>>> valid for the URL /css/images/pages-forward.gif. If you are using a 
>>> DSO version of mod_proxy, make sure the proxy submodules are 
>>> included in the configuration using LoadModule.
>>> Access Log:
>>> ip - - [21/Jul/2008:20:45:59 +0200] "GET 
>>> /static/f5ffa9029c78c03cdf54c3b0d4999417-thumb.jpg HTTP/1.1" 403 375 
>>> "http://domain.net/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; 
>>> en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16"
>>> ip - - [21/Jul/2008:20:45:59 +0200] "GET 
>>> /css/images/pages-forward.gif HTTP/1.1" 403 354 "http://domain.net/" 
>>> "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.16) 
>>> Gecko/20080702 Firefox/2.0.0.16"
>>>
>>>
>>> heres the contents of mods-enabled:
>>> alias.load          authz_groupfile.load  cache.load  
>>> dir.load         mime.load         proxy_balancer.load  
>>> proxy_http.load  status.load
>>> auth_basic.load     authz_host.load       cgid.conf   
>>> disk_cache.load  negotiation.load  proxy_connect.load   setenvif.load
>>> authn_file.load     authz_user.load       cgid.load   
>>> env.load         proxy.load        proxy_ftp.load       ssl.conf
>>> authz_default.load  autoindex.load        dir.conf    
>>> mem_cache.load   proxy_ajp.load    proxy_html.load      ssl.load
>>>
>>>
>>> vhost config:
>>>
>>> NameVirtualHost *:80
>>>
>>> ErrorLog /var/log/apache2/error.log
>>>
>>> # Possible values include: debug, info, notice, warn, error, crit,
>>> # alert, emerg.
>>> LogLevel warn
>>>
>>> CustomLog /var/log/apache2/access.log combined
>>> ServerSignature On
>>>
>>> <VirtualHost *:80>
>>>        ProxyRequests off
>>>        ServerName domain.net
>>>
>>>        ProxyPass / balancer://cluster 
>>> stickysession=JSESSIONID|jsessionid nofailover=On
>>>        ProxyPassReverse / balancer://cluster
>>>
>>>        <Proxy *>
>>>                Order Deny,Allow
>>>                 Allow from all
>>>        </Proxy>
>>>
>>>
>>>        <Proxy balancer://cluster>
>>>                BalancerMember http://tomcatserver.net:8080 
>>> route=jvm1 loadfactor=5
>>>        </Proxy>
>>>        <Location /balancer-manager>
>>>                SetHandler balancer-manager
>>>                Order deny,allow
>>>                Allow from all
>>>        </Location>
>>> </VirtualHost>
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server 
>> Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod proxy & DSO errors(403 forbidden)?

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
Hi Frank

Thanks for the quick answer, but does'nt it mean when the module are in 
mods-enabled, it are loaded? Please see the contents of mods-enabled below..

Frank Gingras wrote:
> Nino,
>
> Please load the mod_proxy_html module.
>
> Nino Saturnino Martinez Vazquez Wael wrote:
>> I get a error about DSO(stating that I have to enable a proxy 
>> submodule), it's there for all sub sites, root passes without 
>> problems. I have enabled all the proxy modules. Whats wrong?
>>
>>
>>
>> Error msg:
>> [Mon Jul 21 20:40:54 2008] [notice] Apache/2.2.3 (Ubuntu) 
>> proxy_html/2.5 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming 
>> normal operations
>> ...
>> ....
>> [Mon Jul 21 20:45:59 2008] [warn] proxy: No protocol handler was 
>> valid for the URL /static/f5ffa9029c78c03cdf54c3b0d4999417-thumb.jpg. 
>> If you are using a DSO version of mod_proxy, make sure the proxy 
>> submodules are included in the configuration using LoadModule.
>> [Mon Jul 21 20:45:59 2008] [warn] proxy: No protocol handler was 
>> valid for the URL /css/images/pages-forward.gif. If you are using a 
>> DSO version of mod_proxy, make sure the proxy submodules are included 
>> in the configuration using LoadModule.
>> Access Log:
>> ip - - [21/Jul/2008:20:45:59 +0200] "GET 
>> /static/f5ffa9029c78c03cdf54c3b0d4999417-thumb.jpg HTTP/1.1" 403 375 
>> "http://domain.net/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; 
>> en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16"
>> ip - - [21/Jul/2008:20:45:59 +0200] "GET 
>> /css/images/pages-forward.gif HTTP/1.1" 403 354 "http://domain.net/" 
>> "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.16) 
>> Gecko/20080702 Firefox/2.0.0.16"
>>
>>
>> heres the contents of mods-enabled:
>> alias.load          authz_groupfile.load  cache.load  
>> dir.load         mime.load         proxy_balancer.load  
>> proxy_http.load  status.load
>> auth_basic.load     authz_host.load       cgid.conf   
>> disk_cache.load  negotiation.load  proxy_connect.load   setenvif.load
>> authn_file.load     authz_user.load       cgid.load   
>> env.load         proxy.load        proxy_ftp.load       ssl.conf
>> authz_default.load  autoindex.load        dir.conf    
>> mem_cache.load   proxy_ajp.load    proxy_html.load      ssl.load
>>
>>
>> vhost config:
>>
>> NameVirtualHost *:80
>>
>> ErrorLog /var/log/apache2/error.log
>>
>> # Possible values include: debug, info, notice, warn, error, crit,
>> # alert, emerg.
>> LogLevel warn
>>
>> CustomLog /var/log/apache2/access.log combined
>> ServerSignature On
>>
>> <VirtualHost *:80>
>>        ProxyRequests off
>>        ServerName domain.net
>>
>>        ProxyPass / balancer://cluster 
>> stickysession=JSESSIONID|jsessionid nofailover=On
>>        ProxyPassReverse / balancer://cluster
>>
>>        <Proxy *>
>>                Order Deny,Allow
>>                 Allow from all
>>        </Proxy>
>>
>>
>>        <Proxy balancer://cluster>
>>                BalancerMember http://tomcatserver.net:8080 route=jvm1 
>> loadfactor=5
>>        </Proxy>
>>        <Location /balancer-manager>
>>                SetHandler balancer-manager
>>                Order deny,allow
>>                Allow from all
>>        </Location>
>> </VirtualHost>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server 
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod proxy & DSO errors(403 forbidden)?

Posted by Frank Gingras <fr...@gmail.com>.
Nino,

Please load the mod_proxy_html module.

Nino Saturnino Martinez Vazquez Wael wrote:
> I get a error about DSO(stating that I have to enable a proxy 
> submodule), it's there for all sub sites, root passes without 
> problems. I have enabled all the proxy modules. Whats wrong?
>
>
>
> Error msg:
> [Mon Jul 21 20:40:54 2008] [notice] Apache/2.2.3 (Ubuntu) 
> proxy_html/2.5 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming 
> normal operations
> ...
> ....
> [Mon Jul 21 20:45:59 2008] [warn] proxy: No protocol handler was valid 
> for the URL /static/f5ffa9029c78c03cdf54c3b0d4999417-thumb.jpg. If you 
> are using a DSO version of mod_proxy, make sure the proxy submodules 
> are included in the configuration using LoadModule.
> [Mon Jul 21 20:45:59 2008] [warn] proxy: No protocol handler was valid 
> for the URL /css/images/pages-forward.gif. If you are using a DSO 
> version of mod_proxy, make sure the proxy submodules are included in 
> the configuration using LoadModule.
> Access Log:
> ip - - [21/Jul/2008:20:45:59 +0200] "GET 
> /static/f5ffa9029c78c03cdf54c3b0d4999417-thumb.jpg HTTP/1.1" 403 375 
> "http://domain.net/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; 
> en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16"
> ip - - [21/Jul/2008:20:45:59 +0200] "GET /css/images/pages-forward.gif 
> HTTP/1.1" 403 354 "http://domain.net/" "Mozilla/5.0 (Macintosh; U; 
> Intel Mac OS X; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16"
>
>
> heres the contents of mods-enabled:
> alias.load          authz_groupfile.load  cache.load  dir.load         
> mime.load         proxy_balancer.load  proxy_http.load  status.load
> auth_basic.load     authz_host.load       cgid.conf   disk_cache.load  
> negotiation.load  proxy_connect.load   setenvif.load
> authn_file.load     authz_user.load       cgid.load   env.load         
> proxy.load        proxy_ftp.load       ssl.conf
> authz_default.load  autoindex.load        dir.conf    mem_cache.load   
> proxy_ajp.load    proxy_html.load      ssl.load
>
>
> vhost config:
>
> NameVirtualHost *:80
>
> ErrorLog /var/log/apache2/error.log
>
> # Possible values include: debug, info, notice, warn, error, crit,
> # alert, emerg.
> LogLevel warn
>
> CustomLog /var/log/apache2/access.log combined
> ServerSignature On
>
> <VirtualHost *:80>
>        ProxyRequests off
>        ServerName domain.net
>
>        ProxyPass / balancer://cluster 
> stickysession=JSESSIONID|jsessionid nofailover=On
>        ProxyPassReverse / balancer://cluster
>
>        <Proxy *>
>                Order Deny,Allow
>                 Allow from all
>        </Proxy>
>
>
>        <Proxy balancer://cluster>
>                BalancerMember http://tomcatserver.net:8080 route=jvm1 
> loadfactor=5
>        </Proxy>
>        <Location /balancer-manager>
>                SetHandler balancer-manager
>                Order deny,allow
>                Allow from all
>        </Location>
> </VirtualHost>
>
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org