apache - Unable to setup Gerrit code review: Service Temporarily Unavailable -
i trying setup gerrit on centos
using http authentication getting "service temporarily unavailable
" when tried access on "http://x.x.x.x/gerrit/login/
".
it seems configuration issue gerrit/apache. tried change settings no luck.
as per understanding since gerrit on http authentication apache needs pass authentication gerrit , both should running on different ports(which trying do).
i gone through other questions on here(another question) http auth gerrit unable through.
this gerrit.config
[gerrit] basepath = git canonicalweburl = http://localhost:8081/gerrit [database] type = h2 database = db/reviewdb [index] type = lucene [auth] type = http [sendemail] smtpserver = localhost [container] user = gerrit2 javahome = /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.79.x86_64/jre [sshd] listenaddress = *:29418 [httpd] listenurl = http://x.x.x.x:8081/ [cache] directory = cache
this end of /etc/httpd/conf/httpd.conf
<virtualhost *:80> servername www.example.org proxyrequests off proxyvia off proxypreservehost on <proxy *> order deny,allow allow </proxy> <location /gerrit/login/> authtype basic authname "gerrit code review" require valid-user authuserfile '/etc/httpd/gerrit.htpasswd' </location> allowencodedslashes on proxypass /gerrit http://localhost:8081/gerrit </virtualhost>
try change apache configuration of location tag from
<location /gerrit/login/>
to
<location "/">
Comments
Post a Comment