User Panel Login removes port

Started by djprmf, October 29, 2021, 08:46:47 AM

Previous topic - Next topic

djprmf

Hello,

I notice that, when we try to login in a user control panel, CWP "remove" from the URL the port.
For instance:
https://hostname:2083/xxxxx
goes to
https://hostname/xxxx

this leads to a "Not Found" error.
If i try to add the port number manually, then he enters correctly.

I found that this happens when login in directly from the control panel page, or even the Admin page, in the "List accounts" section.

Does anyone knows how to fix or is a bug?
Thanks

IuseCWP

Hi,

I am looking into why the the first load redirects and removes the port number from the url.

Example:
users enter https://example.com:2083 which would redirect them instantly to https://example.com. On the second attempt it then works. Same goes with 2087.

It might just be a apache redirect issue.

I have the server redirect everything through https all http attempts redirect to https

added an .htacces with the following to /usr/local/apache/htdocs


# Redirect Everything to HTTPS
# DO NOT REMOVE
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

djprmf

I don't have that rule and still have the issue

IuseCWP

Interesting,

I tried a few proxy work arounds and it works but i have to set the port to either 2087/2083 which is useless if a client tries to access the panel.

I do not see any responses from admins for a work around or what could be causing the issue.

I'll continue to find a fix this weekend.