logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Confused about the proxy directive
Author
red888



Joined: 09 Jun 2016
Posts: 1

PostPosted: Fri 10 Jun '16 3:20    Post subject: Confused about the proxy directive Reply with quote

Reading the docs I'm still a little unsure of something:

Quote:
For example, the following will allow only hosts in yournetwork.example.com to access content via your proxy server:

Code:
<Proxy *>   Require host yournetwork.example.com </Proxy>


The following example will process all files in the foo directory of example.com through the INCLUDES filter when they are sent through the proxy server:

Code:
<Proxy http://example.com/foo/*>   SetOutputFilter INCLUDES </Proxy>


The next example will allow web clients from the specified IP addresses to issue CONNECT requests to access the https://www.example.com/ SSL server if mod_proxy_connect is enabled.

Code:
<Proxy www.example.com:443>   Require ip 192.168.0.0/16 </Proxy>


So what I specify in <Proxy URL/IP/port> determines if the proxy rules get applied right?

So in the last example a client with an IP of 192.123.1.1 will be able to connect to www.example.com over HTTP, but not HTTPS right? Its outside the allowed IP block, but because its connecting over port 80 it doesn't get proxied at all and will be able to access it. Is this correct?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 16 Jun '16 18:37    Post subject: Reply with quote

You want an IP Range or a single IP able to connect to your proxy?

Can you post your config please?
Back to top


Reply to topic   Topic: Confused about the proxy directive View previous topic :: View next topic
Post new topic   Forum Index -> Apache