httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Galić <i.ga...@brainsware.org>
Subject Re: [users@httpd] Apache http reverse-proxy configuration
Date Fri, 14 May 2010 11:50:15 GMT

----- "Claudia dosSantos" <Claudia.dosSantos@ricoh-europe.com> wrote:

> Hi,
> 
> I'm trying to configure a reverse proxy for Gerrit code review.
> 
> The configuration in httpd.conf file is:
> 
> 
> #
> # Reverse Proxy for Gerrit
> #
> LoadModule proxy_module modules/mod_proxy.so
> LoadModule proxy_http_module modules/mod_proxy_http.so
> 
> LoadModule proxy_html_module modules/mod_proxy_html/mod_proxy_html.so
> LoadModule xml2enc_module modules/mod_proxy_html/mod_xml2enc.so
> 
> ProxyRequests Off

ProxyRequests Off is the default: http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyrequests


> ProxyPass /r/ http://172.17.27.186:8081/r/

You appear to be missing the Reverse Path:

ProxyPassReverse /r/ http://172.17.27.186:8081/r/

> ProxyPreserveHost On
> 
> <Proxy *>
> Order deny,allow
> Allow from all
> </Proxy>

This is usually the default too...

> <Location /r/ >
> AuthType Basic
> AuthName "Gerrit Review Server"
> AuthUserFile passwd
> Require valid-user
> </Location>

If you're trying to get authentication to work correctly, I suggest to read
http://www.apachetutor.org/admin/reverseproxies about reverse proxies in general
and then to adapt your setup to something like this


ProxyPass /r/ http://172.17.27.186:8081/r/
<Location /r/ >
  AuthStuffHere
  ProxyPassReverse /
</Location>

 
> And the configuration in gerrit.conf file is:
> 
> ...
> 
> [httpd]
> listenUrl = proxy-http://172.17.27.186:8081/r/
> ....
> 
> 
> 
> When i try to access http://localhost/r/ the authentication required
> window shows up, but after authentification i get this message:
> 
> "Service Temporarily Unavailable"...
> 
> When i try to access http://172.17.27.186:8082/r/ i get another error:
> 
> HTTP ERROR 403
> 
> Problem accessing /r/login/mine. Reason: Forbidden
> 
> It seems that the reverse proxy doesn't work properly.
> It's weird because i have already Nexus Server with reverse proxy in
> another Server and it works just fine...
> 
> 
> 
> If anyone knows what's wrong let me know please.
> 
> 
> regards,
> 
> Santos


So long,
-- 
Igor Galić

Tel: +43 (0) 699 122 96 338
Fax: +43(0) 1 91 333 41
Mail: i.galic@brainsware.org
URL: http://brainsware.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


Mime
View raw message