Author Topic: User Panel Login removes port  (Read 2944 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
User Panel Login removes port
« on: October 29, 2021, 08:46:47 AM »
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

Offline
*
Re: User Panel Login removes port
« Reply #1 on: October 29, 2021, 09:06:40 PM »
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

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

Offline
*
Re: User Panel Login removes port
« Reply #2 on: October 30, 2021, 11:00:38 AM »
I don't have that rule and still have the issue

Offline
*
Re: User Panel Login removes port
« Reply #3 on: November 03, 2021, 08:42:35 PM »
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.