weixin_39908263 2020-11-29 13:29
浏览 0

Incorrect login/logout links with apache proxy

Originally reported on Google Code with ID 76


I access gitblit through the apache proxy (apache works with SSL enabled):

# enable gitblit access
SSLProxyEngine On
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
AllowEncodedSlashes NoDecode

<proxy> 
    AddDefaultCharset off 
    Order deny,allow 
    Allow from all 
</proxy>

ProxyPass /gitblit http://localhost:8080/gitblit
ProxyPassReverse /gitblit http://localhost:8080/gitblit

All works fine except the login and logout in the gitblit page. When I press Login
or Logout link (or button) my browser goes to http://<host>/gitblit instead of https://<host>/gitblit.

Another links on the gitblit pages work fine.

Some of the gitblit.property sets:

web.mountParameters = false
server.httpBindInterface = localhost
server.httpPort = 8080
server.httpsPort = 0
server.contextPath = /gitblit

Of cause, I can use https in gitblit, but I catched some problems with it - my browser
shows the following message when I open gitblit page:

Error during SSL Handshake with remote server

It's an apache's proxy error. I was googling for some time and some user adviced me
to enable only localhost access to gitblit server and to use http protocol instead
of https one.
</host></host>

Reported by 2sh2ka on 2012-03-19 18:39:10

该提问来源于开源项目:gitblit/gitblit

  • 写回答

5条回答 默认 最新

  • weixin_39908263 2020-11-29 13:29
    关注
    
    See if this document helps:
    https://cwiki.apache.org/WICKET/wicket-application-behind-modproxyhttp-and-https.html
    
    Related to this, the next release will have a built-in AJP connector.
    

    Reported by James.Moger on 2012-03-19 18:55:14 - Status changed: Accepted - Labels added: Milestone-0.9.0

    评论

报告相同问题?