Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share log in redirect from https to http URL #214

Open
miroslavklima opened this issue Dec 30, 2024 · 3 comments
Open

Share log in redirect from https to http URL #214

miroslavklima opened this issue Dec 30, 2024 · 3 comments

Comments

@miroslavklima
Copy link

miroslavklima commented Dec 30, 2024

I have created a project with https configuration (23.4). When I enter https://domain.com/share, everything is fine. However, after entering my login details, I am redirected to http://domain.com:443/share. If I manually rewrite the url to https, I am able to use the share without a problem. I am using default nginx configuration ( Do you want to use HTTPs for Web Proxy? yes, Which http port for.. 443)

What could be causing this behavior?

@miroslavklima
Copy link
Author

The problem was in the server.xml file, the connector was generated incorrectly. Parameters like proxyName were not part of it and were placed on the line below the connector.

aborroy added a commit that referenced this issue Dec 31, 2024
@aborroy
Copy link
Contributor

aborroy commented Dec 31, 2024

Thank you for reporting this. The issue should be resolved in version 1.0.1.

@a42niem
Copy link

a42niem commented Jan 24, 2025

EDIT:
For me the problem is now that ${SERVER_NAME} is not replaced in 6.2 and 7.4.
They work after reusing the previous two lines and modifying them to be
RUN sed -i "/Connector port=\"8080\"/a scheme=\"https\" secure=\"true\"" /usr/local/tomcat/conf/server.xml && \
sed -i "/Connector port=\"8080\"/a proxyName=\"${SERVER_NAME}\" proxyPort=\"443\"" /usr/local/tomcat/conf/server.xml
For 23.4 the version 1.0.1 is working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants