Thursday, 28th March 2024

Comment posted Apache Reverse Proxy to Tomcat – What is reverse proxying and how to configure it on Linux by .

Recent comments by

Share this on:

Tags: , , , ,

No Responses to “…”

  1. hip0 says:
    Firefox 24.0 Firefox 24.0 Windows 7 x64 Edition Windows 7 x64 Edition
    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

     
     

    View CommentView Comment
  2. admin says:
    Firefox 30.0 Firefox 30.0 Windows 7 x64 Edition Windows 7 x64 Edition
    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:

    • mod_proxy
    • mod_proxy_http
    • mod_proxy_connect

    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

     

    View CommentView Comment
  3. admin says:
    Firefox 30.0 Firefox 30.0 Windows 7 x64 Edition Windows 7 x64 Edition
    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

     

    View CommentView Comment
  4. admin says:
    Firefox 54.0 Firefox 54.0 Windows 7 x64 Edition Windows 7 x64 Edition
    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.
    Keep the client unaware of which machine they are accessing.
    Perform load balancing.
    A central point for Web Application Firewall monitoring.

    View CommentView Comment