Author Topic: Change URL for web gui  (Read 998 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Change URL for web gui
« on: December 16, 2023, 05:51:00 AM »
Hey, currently I am accessing the panels from hostname:2083 and hostname:2031 I would like to access them with cpadmin.domain.com and cpuser.domain.com what's the best way to do this?

Offline
*
Re: Change URL for web gui
« Reply #1 on: December 18, 2023, 11:48:35 AM »
any idea?

Offline
*****
Re: Change URL for web gui
« Reply #2 on: December 18, 2023, 05:02:40 PM »
Under Webserver Settings > Apache Redirects you can add a trailing URL path alias:

https://yourserver.net:2031/admin/index.php?module=system_redirects

Code: [Select]
Redirect permanent /cpanel https://IPADDRESS:2083/
Because CWP runs on alternate ports, you won't be able to make the clean hostname URLS you are looking for. You would always have to include the port numbers (:2083, :2087). Is it not acceptable to tell your clients they can go to https://theirdomain.com/cpanel or https://cpanel.theirdomain.com and it will then redirect them to the proper login page with the port # appended?

Offline
*
Re: Change URL for web gui
« Reply #3 on: December 18, 2023, 08:59:01 PM »
is that the same for webmail?

or can I change the domain permanently to webmail.domain.com?

Offline
****
Re: Change URL for web gui
« Reply #4 on: December 18, 2023, 09:50:16 PM »
Depends on your configurations, but there are some default links for your users.

Both Nginx and Apache have the ability to access off port configurations on the normal port 443 and port 80 via what's call a reverse proxy.  Check out the following directories to see examples

Nginx: /etc/nginx/conf.d/vhosts
Apache:  /usr/local/apache/conf.d/vhosts

Pick a domain, and look for virtualhosts such as webmail. or panel.
Google Hangouts:  rcschaff82@gmail.com