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

Https redirected to port 80 after login #413

Open
mondolirondo opened this issue Nov 28, 2021 · 7 comments
Open

Https redirected to port 80 after login #413

mondolirondo opened this issue Nov 28, 2021 · 7 comments

Comments

@mondolirondo
Copy link

mondolirondo commented Nov 28, 2021

System Info

  • PHP Version: 7.4.24
  • XBackBone Version: 3.5.1
  • Webserver: Apache
  • Database backend: SQLite

Describe the bug
After login, if certain conditions are met, you get redirected to port 80 even though you are connecting throught https.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://mysite.com where XBackBone is installed
  2. You get redirected to https://mysite.com/login
  3. Fill in credentials and press "Login"
  4. You get directed to https://mysite.com:80/home (https, but port 80)
  5. The browser refuses the connection with an error

Notice that if you enter https://mysite.com/login in the address bar (avoiding the first redirection), login works fine.

Expected behavior
The second time you should get directed to https://mysite.com/home

@sergix44
Copy link
Owner

In the file config.php, you should have the base url used to create links.
You should remove the port from there.

@mondolirondo
Copy link
Author

Hi Sergi
The base URl in config.php, does not contain the port, it must be being added somewhere else.

@wearehosted
Copy link

I am encountering the same issue, I've tried changing .htaccess to redirect if port 80 is found on the URL but no luck, the config file has no port. I can confirm this works on a different server. Guessing it's how is pulling the Server Url, it's also pulling the port.

@gpopesc
Copy link

gpopesc commented Sep 14, 2022

I have the same issue. I can't use with reverse proxy, it automatically redirects to local ip with http connection

@gpopesc
Copy link

gpopesc commented Sep 14, 2022

I found the solution: modify the correct login domain in config file: xbackbone/data/www/xbackbone/config.php
it is automatically set for first domain when you complete the installation.

@FingerlessGlov3s
Copy link
Contributor

FingerlessGlov3s commented Oct 31, 2022

Mine also does this after login, even with my base_url set to like https://mydomain.com

I use traefik as my TLS ingress.

@FingerlessGlov3s
Copy link
Contributor

#495

I believe this will fix it for anyone else who gets the problem.

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

5 participants