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? 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. 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>
    

Environment

  • Red Hat Enterprise Linux (RHEL)
  • Red Hat Software Collections (RHSCL)
  • Red Hat JBoss Core Services (JBCS)
  • Apache Web Server (HTTPD)
    • mod_proxy

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content