1. Home
  2. Docs
  3. Knowledgebase and Tutorials
  4. ClusterControl
  5. Tips & Tricks
  6. How To Change the Default HTTP/HTTPS Port For ClusterControl

How To Change the Default HTTP/HTTPS Port For ClusterControl

Apache 2.4 Changes

RedHat/CentOSDebian/Ubuntu

Edit the /etc/httpd/conf/httpd.conf file and change

Listen 80

To

Listen <your new port>

Edit the /etc/apache2/ports.conf file and change

Listen 80
To Listen <your new port> 

ClusterControl Changes

RedHat/CentOSDebian/Ubuntu

1. To change the default HTTP port, edit the /etc/httpd/conf.d/cc-frontend.conf file and change:

<VirtualHost *:80>

To

<VirtualHost *:your new port>

2. To change the default HTTPS port (443), edit the /etc/httpd/conf.d/cc-frontend.conf file and change

<VirtualHost *:443>

To

<VirtualHost *:your new port>

3. You also want to change the redirection URL to reflects the HTTPS port accordingly (in this example, new HTTP port is 8080 and new HTTPS port to 8443):

<VirtualHost *:8080>
        ServerName 164.90.192.155
        Redirect permanent / https://164.90.192.155:8443/
</VirtualHost>

1. Edit the /etc/apache2/sites-available/cc-frontend.conf file and change

<VirtualHost *:80>

To

<VirtualHost *:your new port>

2. To change the default HTTPS port (443), edit the /etc/apache2/sites-available/cc-frontend.conf file and change

<VirtualHost *:443>

To

<VirtualHost *:your new port>

3. You also want to change the redirection URL to reflect the HTTPS port accordingly (in this example, the new HTTP port is 8080, and new HTTPS port to 8443), for example:

<VirtualHost *:8080>
        ServerName 164.90.192.155
        Redirect permanent / https://164.90.192.155:8443/
</VirtualHost>

Restart the Apache server and log in to the web application using the URL http://<your ClusterControl controller IP:8080 (8080 used in the example):

# Redhat/Centos
systemctl restart httpd

# Ubuntu/Debian
systemctl restart apache2
Was this article helpful to you? Yes No