Download Managing Linux Systems with Webmin
Transcript
Configuring Apache as a Proxy Server 303 6. To turn off caching for particular websites, enter a space-separated list of hostnames and domains into the Domains not to cache field. This can be useful for avoiding the caching of sites that frequently change. 7. To stop users of the proxy from accessing certain domains, enter a space-separated list of full or partial hostnames into the Block requests to domains field. For example, to deny access to all sites in the foo.com domain you could just enter foo.com. 8. If you have another proxy server on your network and want to pass all requests on to that proxy, enter its URL (like http://proxy.example.com:8080/) into the empty field under Forward to in the Requests to pass to another proxy table and leave the All option selected. You can also have just a few requests passed on by selecting the Matching option and entering a partial URL or URL type (like http://www.foo.com/ or ftp) into the field next to it. Like other tables in the Apache module, this one only displays one blank row at a time. If you want to set up several other proxies to which to forward different requests, you will need to re-edit this page after saving and fill in the next blank row. For example, you might want to forward all FTP requests to one proxy, but all other types of requests to another. 9. To exclude some requests from being passed to the other proxies (for example, if they are on your local network), you can fill in the Don’t pass requests to another proxy for table. In each empty row you can choose from one of the following types: IP address If this type is chosen, you must enter a complete IP address into the field next to it. Any requests to the web server with this IP will not be passed on to another proxy. Hostname When this type is chosen, any requests to the web server whose hostname is entered into the adjacent field will not be passed on. Domain Any requests to websites in the domain entered into the field next to the menu will be retrieved directly and not passed on. IP network Any requests to websites in the specified IP network (entered as a partial IP address, like 192.168) will not be passed on to another proxy. Network/bits Any requests to websites in the IP network (entered in address/prefix, like 192.168.1.0/24 format into the adjacent field) will not be passed on. To add more than one row, you will need to save the form and edit it again so that a new blank row is displayed. 10. Most of the other options on the form control the layout of the cache directory and the amount of time for which pages are cached. In most cases, the defaults will work fine so you can just leave them set to Default. 11. When done, click the Save button to update the Apache configuration file with the proxy settings, then the Apply Changes link to make them active. You should now be able to try your settings by configuring a web browser to use your Apache server as a proxy and visiting some web pages. All proxy requests that Apache processes will be written to the access log file for the virtual server in the usual format, but with the full URL recorded instead of just the page. You may sometimes want to limit who has access to proxy, either by client IP address or by username and password. This can be done by following the instructions in Section 29.14 “Restrict-
Related documents
Manual
TrafficShield™ Installation and Configuration Manual
DHCP en Ubuntu - Manuais de referencia
SECURING OPEN SOURCE VIRTUAL PRIVATE NETWORKS: A
EdgeWare OS User Manual - Cutting Edge Networked Storage
User`s Manual of CloudRank_V1.0
PROLinux Server Master安裝說明手冊
THE DATA CENTER
documentation produit
The AirJaldi Bandwidth Maximizer (BwM)
FrameScript: A Multi-modal Scripting Language
AIRWELL -YCVFD280