It is possible to make the Oracle APEX link look prettier by not having to display “:8443” in the URL and I want to share with you how to easily setup Oracle APEX without having to display port 8443 in the address.

By default, Apache Tomcat uses port 8443 for secured connections. This means that any web apps installed on the Apache Tomcat web server has to be accessed like the example below:

https://localhost:8443/ords/

To be able to follow this tutorial, you would need to have your Apache Tomcat installation enabled for HTTPS connection.

Setup Oracle APEX without having to display port 8443

For this setup to be successful, you would have to confirm that no other local web host setups in your Windows 10 machine is utilizing port 443. If so, then please either move the local web host to a different port or shut it down first.

First open up the Apache Tomcat server.xml file in Notepad or in your favourite text editor which is located inside the conf folder. Usually it is located in below Windows 10 directory if you haven’t change the Apache Tomcat installation path.

C:\Program Files (x86)\Apache Software Foundation\Tomcat 9.0\conf

or 

C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf

Next locate the statement as below and update it to the value as in bold:

<Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

update to:

<Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="443" />

The next step in our journey to setup Oracle APEX without having to display port 8443 is to edit the below statement. Changes are in bold:

<Connector executor="tomcatThreadPool"
    port="80" protocol="HTTP/1.1"
    connectionTimeout="20000"
    redirectPort="8443" />

Update to:

<Connector executor="tomcatThreadPool"
    port="80" protocol="HTTP/1.1"
    maxThreads="500" minSpareThreads="50" prestartminSpareThreads="true" 
    connectionTimeout="20000"
    redirectPort="443" />

I added in the parameters maxThreads, minSpareThreads and prestartminSpareThreads to change Apache Tomcat’s default value. You can configure the values adjusted to your environments capacity or just delete them out if it is not needed. The default values are as below:

maxThreads: The max number of active threads in this pool. Default value is 200.

minSpareThreads: The minimum number of threads (idle and active) always kept alive. Default value is 25.

Once that is completed, lookout for the displayed statement below. Something to take note, the below connector statement was added from my previous post about setting up HTTPS for Oracle APEX. You need to get that done first to be able to load Oracle APEX securely.

<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
			   scheme="https" secure="true"
               keystoreFile="/temp/keystore/localhost.keystore" keystorePass="**Your password**"
               clientAuth="false" sslProtocol="TLS" sslVerifyClient="optional"
			   sslEnabledProtocols="TLSv1.2,TLSv1.1,SSLv2Hello"/>

Update to:

<Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
			   scheme="https" secure="true"
               keystoreFile="/temp/keystore/localhost.keystore" keystorePass="**Your password**"
               clientAuth="false" sslProtocol="TLS" sslVerifyClient="optional"
			   sslEnabledProtocols="TLSv1.2,TLSv1.1,SSLv2Hello"/>

Save the server.xml file and then launch services.msc and then restart the Apache Tomcat 9 service.

You now should be able to load your Oracle APEX 20.2 instance without showing the port number 8443. The updated URL would be as below:

https://localhost/ords
Oracle-APEX-without-port-8443-displayed

Conclusion for how to setup Oracle APEX without having to display port 8443

Hiding the port 8443 makes your Oracle APEX address a little bit more pretty than the default link. It also makes it look more professional in a sense.

You would only need to alter some configurations in the Apache Tomcat server.xml file to achieve this.

I hoped you enjoyed this short tutorial on how to setup Oracle APEX without having to display port 8443.

Oracle APEX is a great tool to build web apps fast and secure. To set it up, please visit my article on how to setup Oracle APEX and ORDS in Windows 10.

Leave a Comment

Your email address will not be published. Required fields are marked *

This div height required for enabling the sticky sidebar