Apache Configuration Forward Proxy

Source: Internet
Author: User

Background

Proxy, located between the client and the actual server, when the client needs to request service-side content, the agent initiates a request, the agent forwards the request to the actual servers, and then the original path back. You can also set the cache on the proxy server, cache the infrequently changed content on the actual server, and return directly when the client requests arrive, which can improve the response speed and reduce unnecessary network access.

    • Forward Proxy, which is the proxy for the client:

1. Know the address of the server that you actually need to access

2. Special configuration required for proxy server

    • Reverse proxy (Reverse proxy), which for the client:

1. Do not know the address of the server that you actually need to access, only know the address of the agent

2. No special configuration required for the agent

The normal application scenario for a forward proxy is to configure a forward proxy for LAN access to external network content, due to out-of-line restrictions, such as firewalls. The client is usually located within the LAN.

Reverse proxy, commonly used in Web applications, the proxy server forwards the actual request of the client back to the actual back-end application server. The server is usually located in a LAN.

----------------------------------------------------------

Apache httpd Server Configuration forward Proxy

httpd.conf file

    • LoadModule Configuration

Have to:

LoadModule Proxy_module modules/mod_proxy.so

LoadModule Proxy_http_module modules/mod_proxy_http.so

Optional:

LoadModule proxy_http_module modules/mod_proxy_http.so (for HTTP Request)

LoadModule proxy_connect_module modules/mod_proxy_connect.so (for HTTPS Request)

And so on ...

    • Proxyrequests Configuration

Proxyrequests on

    • Proxyvia Configuration

Proxyvia on

    • <Proxy> configuration, which qualifies the accessible source, because it is a forward proxy, you need to limit the client requests that can be accessed out of this proxy server, such as:

<proxy "*" >
Order Deny,allow
Deny from all
Allow from 192.168.255.0/24
</Proxy>

Indicates that for all requests ("*"), only the 192.168.255.0/24 network segment is allowed to originate.

Apache Configuration Forward Proxy

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.