wellington-junio / gitblit

Automatically exported from code.google.com/p/gitblit
Apache License 2.0
0 stars 0 forks source link

Redirect from https to http after logged in #574

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.setup Gitblit wit https
2.open main page (https)
3.insert login/password, click 'Login'

What is the expected output? What do you see instead?
Every request is https.
Instead: there is a redirect to http

What version of the product are you using? On what operating system?
1.6.2, Windows, tomcat 7

Please provide any additional information below.
After clicking button I see request in network logs:
POST /?wicket:interface=:1:userPanel:loginForm::IFormSubmitListener:: HTTP/1.1

and in response:
HTTP/1.1 302 Found
Server: Apache
Location: http://<myServerName>/

Original issue reported on code.google.com by piekar...@gmail.com on 17 Mar 2015 at 2:31

GoogleCodeExporter commented 9 years ago
This is a known issue if you are using a reverse proxy.  Now you didn't say you 
were using a reverse proxy, but I think you are.

Original comment by James.Mo...@gmail.com on 17 Mar 2015 at 2:48

GoogleCodeExporter commented 9 years ago
Yes, there's also a proxy.
So how can I workaround this issue?

Original comment by piekar...@gmail.com on 17 Mar 2015 at 7:07

GoogleCodeExporter commented 9 years ago
You're going to have to play with Apache mod_proxy settings.  This is 
out-of-scope of the Gitblit project.

This tutorial may help:
http://pcprob.blogspot.com/2012/08/linux-apache2-reverse-proxy-with-ssl.html

Original comment by James.Mo...@gmail.com on 17 Mar 2015 at 7:23

GoogleCodeExporter commented 9 years ago
Ok, thank's for the link. 

Original comment by piekar...@gmail.com on 18 Mar 2015 at 7:40