Having to give out Oracle APEX address with the port number alongside it makes the link ugly. If you don’t mind it, it is fine the way it is but you actually can setup Oracle APEX without having to display port 8080 in the address.

If you’ve setup Oracle APEX 20.2 with ORDS on Apache Tomcat and haven’t change the settings, the usual Uniform Resource Locator or URL (some of you I know prefer URI but I’m old school), should be as below:

http://host:8080/ords

Not that it is bad but it would be a lot prettier if we can change it to look like the below address which we and our users see more commonly:

http://host/ords

There are two scenarios to go about this, one if you have not installed Apache Tomcat yet and the second is if you’ve already installed it.

Scenario 1 – Apache Tomcat not yet installed: Setup Oracle APEX without having to display port 8080

ORDS needs to be hosted on a web server and in my previous post I have chosen Apache Tomcat for that purpose.

For scenario 1, it is very simple and all you need to do is to change the “HTTP/1.1 Connector Port” option to “80” as you can see in the image below.

tomcat-port-80

Proceed to go on your merry way and once the installation has finished, launch your browser and type the address as below to test:

http://localhost or http://hostname

If the Apache Tomcat web management page loads then that means your setup is correct. Continue to setup ORDS and then test accessing Oracle APEX 20.2 with the address below:

http://localhost/ords/

or

http://*hostname*/ords/

or

http://127.0.0.1/ords/

If your configuration is correct Oracle APEX should load and you can begin to setup your APEX workspaces according to your organization’s needs.

Scenario 2 – Apache Tomcat installed: Setup Oracle APEX without having to display port 8080

If you’ve already completed your Oracle APEX and ORDS installation, you don’t have to reinstall it back. All you need to do is update the Apache Tomcat server.xml file which is located in the “conf” folder. Usually the file can be found at the following path if you have not altered the default selection prior to Apache Tomcat installation:

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

or

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

Open the server.xml file in notepad and find the following statement:

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

Edit port number from 8080 to 80 as below:

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

Save the server.xml file and open up services.msc and restart the Apache Tomcat 9 service. After that load your Oracle APEX 20.2 instance using the below URL:

http://localhost/ords/

or

http://*hostname*/ords/

or

http://127.0.0.1/ords/

If it loads, great! If it doesn’t check back your server.xml configuration file. The edits are quite simple and easy to follow.

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

Port 80 is the default port assigned for Hypertext Transfer Protocol (HTTP). Assigning port 80 to your Apache Tomcat server solves the Oracle APEX address issue as your browser already knows what to expect if a resource is using that port to communicate without you needing to specify it.

This only works if you do not have any other web servers in your localhost running on port 80. If you do, then you’ll have to shut down the other resource to avoid conflict.

I hope you had fun learning how to setup Oracle APEX without having to display port 8080. Bookmark tech201.com for more upcoming Oracle APEX tutorials and tech articles.

Leave a Comment

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

This div height required for enabling the sticky sidebar