In Apache, the mod_proxy module performs proxy functionality, on the base of this module, the proxy features of Apache are divided into several protocol-specific sub-modules. For example, mod_proxy_http. This module provides the features used for proxying requests over HTTP and HTTPS protocol which includes HTTP/0.9, HTTP/1.0 and HTTP/1.1.
In order to get the ability of handling HTTP proxy requests, mod_proxy and mod_proxy_http have to be present in the server.
In this article, we’ll describe what mod_proxy_http is and how to enable it via different ways:
- VPSrobots Control Panel
- SSH client, PuTTY
How to enable mod_proxy_http module for Apache with VPSrobots?
- Start VPSrobots Control Panel and connect to your Linux server by seeing the guide.
- Visit Breadcrumb Setting tab >> Apache2 Setting section, click More to open Apache tab page.
- Search for mod_proxy_http using the search bar then you can find the module line highlighted blue in Apache Module sub-tab.
- Click Enable in the line then click Apply on the page.
How to enable mod_proxy_http module for Apache with command prompt?
First of all, you should note that the following commands are valid for Debian7 with Apache2.2.
Start by logging in to your Linux server via SSH client, for example, PuTTY. See the guide here.
Once connected, open the mod-enabled directory in Apache by running the command:
Verify the status of the mod_proxy_http by seeing if it is listed in the directory, if not, enable it with:
Don’t forget to restart your Apache server by typing:
service apache2 restart
You now know how to enable the mod_proxy_http module in your Apache. We also recommend you to read our guide on How to Enable mod_include Apache Module with VPSrobots.