Comment posted Apache Reverse Proxy to Tomcat – What is reverse proxying and how to configure it on Linux by .
Recent comments by
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
Hey long time now see, thanks for dropping back again! 🙂
Previoust Post:
Next Post:
Tags: apache reverse proxy, configure linux reverseproxy, secure webserver with reverse proxy, tomcat reverse proxy, what is reverse proxy
This entry was posted
on Thursday, March 28th, 2024 at 7:58 pm and is filed under System Administration, Web and CMS.
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
P.S. I read further Reverse proxy can be configured also using mod_jk2.
On Debian Linux its necessary to have enabled modules
proxy and proxy_http
In Debian Linux make sure you have also run:
# sudo a2enmod proxy
# sudo a2enmod proxy_http
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0
One note to make:
In order for ReverseProxy to work you need to have configured in Apache:
To check whether Apache has been compiled with support for this modules issue:
./apachectl -t -D DUMP_MODULES
Loaded Modules:
core_module (static)
authn_file_module (static)
authn_default_module (static)
authz_host_module (static)
authz_groupfile_module (static)
authz_user_module (static)
authnz_ldap_module (static)
authz_default_module (static)
auth_basic_module (static)
dumpio_module (static)
include_module (static)
filter_module (static)
ldap_module (static)
log_config_module (static)
log_forensic_module (static)
logio_module (static)
env_module (static)
expires_module (static)
headers_module (static)
usertrack_module (static)
unique_id_module (static)
setenvif_module (static)
proxy_module (static)
proxy_connect_module (static)
proxy_ftp_module (static)
proxy_http_module (static)
proxy_scgi_module (static)
proxy_ajp_module (static)
proxy_balancer_module (static)
ssl_module (static)
mpm_prefork_module (static)
http_module (static)
mime_module (static)
status_module (static)
asis_module (static)
info_module (static)
dir_module (static)
actions_module (static)
userdir_module (static)
alias_module (static)
rewrite_module (static)
so_module (static)
php5_module (shared)
deflate_module (shared)
auth_certificate_module (shared)
proxy_add_user_module (shared)
Syntax OK
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0
Also if there are troubles with ProxyPass and ProxyPassReverse directives to load or for some reason Reverse proxy is not working.
Make sure in your Virtualhost you have;
SSLEngine On
SSLProxyEngine on
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0
It is interesting to mention also that some clients prefer forward proxy to make possible access from Internal network clients via Forward Proxy to the Internet pretty much the opposite of Reverse Proxy
Forward Proxy
A forward proxy brokerages the request of the client and forwards the request to the destination of the client’s choice contingent on the configuration of the forward proxy.
Most common uses are to
Bypass firewall restrictions.
Cache static resources and save bandwidth.
Control what resources clients can access.
Reverse Proxy
A reverse proxy brokerages the request of the client and forwards the request to the destination purely based on the configuration of the reverse proxy.
Most common uses of a reverse proxy are to
Redirect traffic to machines on the internal network.
View CommentView CommentKeep the client unaware of which machine they are accessing.
Perform load balancing.
A central point for Web Application Firewall monitoring.