Changing the default port v9

By default, the 8443 port is assigned for the web services at the time of configuration of the PEM server. You can change the port after configuration by changing a few parameters in the Apache configuration files. The Apache configuration files names and locations are platform specific.

For RHEL

  1. Edit the file /etc/httpd/conf.d/edb-ssl-pem.conf, replacing 8443 with your port number in the following parameters:

    Listen 8443
    <VirtualHost _default_:8443>
    ServerName localhost:8443
    RewriteRule ^(.*)$ https://%{HTTP_HOST}:8443%{REQUEST_URI} [L,R=301]
  2. If semanage isn't installed, install it:

    sudo yum -y install policycoreutils-python
  3. Check whether your port is listed:

    semanage port -l | grep http
  4. If your port doesn't appear in the list, run this command:

    sudo semanage port -a -t http_port_t -p tcp <your_port_number>
  5. Restart the httpd service:

    sudo systemctl restart httpd

You can now access the PEM web interface using your port. For more details, see Accessing the web interface.

For Debian and Ubuntu

  1. Edit the file /etc/apache2/sites-available/edb-ssl-pem.conf, replacing 8443 with your port number in the following parameters:

    Listen 8443
    <VirtualHost _default_:8443>
    ServerName HTTPD-EDBPEM-SERVER-v8:8443
  2. Restart the httpd service:

    sudo systemctl restart apache2

You can now access the PEM web interface using your port. For more details, see Accessing the web interface.