0

I have a use case where we will have users will be accessing a variety of sites and working with sensitive data. We want to mask that data from the users, so we're trying to set up a forward proxy using where we let most traffic pass through and redirect specific routes to our unmasking service. I'm trying to accomplish this with Apache 2.4 and testing by trying to hit google. From what I read it should let me use ProxyPass to do this but it continues to just operate as a passthrough. Any idea what's wrong in our configuration?

httpd.conf

ServerRoot "/usr/local/apache2/" PidFile /usr/local/apache2/logs/httpd.pid LoadModule mpm_event_module modules/mod_mpm_event.so LoadModule authz_core_module modules/mod_authz_core.so LoadModule authz_host_module modules/mod_authz_host.so LoadModule headers_module modules/mod_headers.so LoadModule unixd_module modules/mod_unixd.so LoadModule log_config_module modules/mod_log_config.so LoadModule ssl_module modules/mod_ssl.so LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_connect_module modules/mod_proxy_connect.so CustomLog "%h %l %u %t \"%r\" %>s %b" /proc/self/fd/1 ErrorLog /proc/self/fd/2 TransferLog /proc/self/fd/1 Listen 80 Listen 443 AllowCONNECT 443 563 NameVirtualHost *:80 NameVirtualHost *:443 Include conf/vhosts/*.conf 

google.conf

<VirtualHost *:443> ServerName google.com SSLEngine On SSLProxyVerify none ProxyRequests On ProxyVia On SSLCertificateKeyFile certs/google.com.key SSLCertificateFile certs/google.com.crt ProxyPass /foo https://localhost:8083/bar ProxyPassReverse /foo https://localhost:8083/bar </VirtualHost> 
1
  • 1
    Apache httpd is primarily a web server and although the commonly used reverse proxy functionality can technically also be used for a forward proxy; that doesn’t make Apache httpd a good forward proxy compared to almost every other solution. IMHO you need to find a different and better tool. Commented Apr 26 at 18:09

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.