Bug 8407 - reverse proxy return FORBIDDEN all the time
Summary: reverse proxy return FORBIDDEN all the time
Status: CLOSED WORKSFORME
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_proxy (show other bugs)
Version: 2.0.35
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-23 10:00 UTC by pascal barbedor
Modified: 2005-03-20 17:06 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pascal barbedor 2002-04-23 10:00:44 UTC
Hi

I have apache 2.0.35 configured as front end server the conf 
looks like this 


standard d:\apache2\htdocs document root for front-end server
mod_rewrite and mod_proxy loaded

# part concerning reverse proxy 

#document root of back-end server, supposed to allow by default
<directory d:/apache/htdocs > order deny,allow
</directory>

ProxyRequests Off

ProxyPass /stylesheets !
ProxyPass /icons !
ProxyPass /bis http://localhost:8080


RewriteEngine On
RewriteRule (^.*\.pl)$ http://localhost:8080$1 [proxy,last]

ProxyPassReverse / http://localhost:8080/
ProxyReceiveBufferSize 49152


the back end server is apache 1.3.22 on port 8080, with 
document root d:\apache\htdocs.


adressing to front end server is ok if not proxy involved
addressing directly to back-end server :8080 is ok

but each time the front-end server is to rewrite or proxypass 
the url i get a FORBIDDEN response.

I guess this is a question of access rights but this is very allusive in apache 
docs.

I put allow from all every where I could but I consistently get return FORBIDDEN

so I thought maybe this can be a bug...

PS I posted to users list first,but got no response so far.


 thanks

pascal
Comment 1 William A. Rowe Jr. 2002-04-23 16:13:09 UTC
Try additional config such as;

<Proxy *>
    Order deny,allow
    Deny from all
    Allow from .yourdomain.example.net localhost 127.0.0.1
</Proxy>

If you have an <Directory "proxy:xxx"> blocks, change them to <Proxy "xxx">
blocks instead.  Let us know if this resolves your issues.


Comment 2 Cliff Woolley 2002-04-23 16:22:47 UTC
What is in the error log?  Is your mod_proxy loaded as a DSO?  If so, do you also have 
mod_proxy_http.so, mod_proxy_ftp.so, and/or mod_proxy_connect.so loaded?  (In your case, 
it would just be mod_proxy_http.so I guess.) 
Comment 3 pascal barbedor 2002-04-23 17:25:16 UTC
I loaded additionnal mod_proxy modules (mod_proxy_http.so, mod_proxy_ftp.so, 
and/or mod_proxy_connect.so )and it works now...

the error log said nothing.

although now with the simple conf below
ProxyRequests Off
ProxyPass / http://localhost:8080/

#ProxyPassReverse / http://localhost:8080/
(last line commented out on purpose  to mention it is not present)

the translated url does not show :8080 in the browser although it is well 
redirected.


Comment 4 Cliff Woolley 2002-04-23 21:01:53 UTC
Unless the client connects to the reverse proxy on :8080, that won't show up 
there, that's correct.  Sounds like this is all good to go now.
Comment 5 Graham Leggett 2002-04-24 17:23:57 UTC
A message only gets written to the log if LogLevel debug is configured - not
that useful for normal people. It's been changed to warning, so it should show
up now.