Apache http reverse-proxy configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

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

ProxyPreserveHost On

<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>
 
<Location /r/ >
    AuthType Basic
    AuthName "Gerrit Review Server"
    AuthUserFile passwd
    Require valid-user
</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
[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux