Would you like to learn how to install Apache and configure the Proxy feature on a computer running Ubuntu Linux? In this tutorial, we are going to configure the Apache server as a proxy to an Nginx server.

• Ubuntu 18
• Ubuntu 19
• Ubuntu 20
• Apache 2.4.41

In our example, the IP address of the Apache server is 192.168.100.9.

In our example, the IP address of the Nginx server is 192.168.100.10.

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

Tutorial Apache - Enable Proxy configuration

Install the Apache server.

Copy to Clipboard

Enable the required Apache modules.

Copy to Clipboard

Edit the Apache configuration file for the default website.

Copy to Clipboard

Here is the file, before our configuration.

Copy to Clipboard

Here is the file, after our configuration.

Copy to Clipboard

In our example, the Apache server will work as a proxy and send all requests to the remote server.

Restart the Apache service.

Copy to Clipboard

Open your browser and enter the IP address of your web server.

In our example, the following URL was entered in the Browser:

• http://192.168.100.9

The Apache server will work as a proxy and display the website of the Nginx server.

nginx welcome

Congratulations! You have finished the configuration of the Apache server as a proxy.