How to configure mod_proxy as a forward proxy that accepts only HTTPS requests from specific client hosts

Solution Verified - Updated -

Issue

I wants to configure mod_proxy as a forward proxy server that accepts only HTTPS requests from only specific client hosts. How do I achieve it?

I tried the following configuration but it does not work:

ProxyRequests On

<Proxy http://*/*>
  Order deny,allow
  Deny from all
</Proxy>

<Proxy https://*/*>
  Order deny,allow
  Deny from all
  Allow from 192.168.0
</Proxy>

All HTTP requests from all clients (e.g. curl -v -k -x http://proxy-host:80/ http://http-server-host/) are denied as expected but all HTTPS request from all clients (e.g. curl -v -k -x http://proxy-host:80/ https://http-server-host/) are allowed.

Environment

  • Red Hat Enterprise Linux (RHEL)
    • 5
    • 6
    • 7
    • 8
  • Red Hat Software Collections (RHSCL)
  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6
  • Red Hat JBoss Web Server (JWS)
  • Red Hat JBoss Core Services (JBCS)
  • Apache httpd
    • 2.2
    • 2.4
  • mod_proxy

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In