Specifications
Chapter 2 Working with Web Service 25
5 Select the Enable Forward Proxy checkbox.
If a forward proxy server is enabled, each site on the server can be used as the proxy.
You might see this message: “Forward Proxy will not properly function with current site
conguration.” This issue is resolved further in the procedure, so click Ok to continue.
6 Select the Control Access To Proxy checkbox to limit access and then enter the domain
name that is permitted access in the “Allowed Domain” eld.
Generally, when limiting who can use your web server as a proxy, limit access to a
specic domain. Users in that domain obtain access.
7 Create the cache folder by opening a Terminal window and entering the
following commands:
$ sudo mkdir /var/run/proxy
$ sudo chown www:www /var/run/proxy
This is the default cache folder. You can choose or create a dierent folder for the cache,
but make sure the owner and group are www and have Read and Write access privileges.
To choose a dierent folder, click the Choose button or enter the path in the Cache
Folder eld. If you are administering a remote server, File services must be running on
the remote server to use the Choose button.
8 Set the disk cache target size and set an interval for emptying the cache.
When the cache reaches this size, the oldest les are deleted from the cache folder.
9 To add a host to block, click the Add (+) button, enter its URL, and then add the names
of all hosts you want to block.
You can import a list of websites by dragging the list to the list of blocked hosts. The
list must be a text le with host names separated by commas or tabs (also known as
csv and tsv strings). Make sure the last entry in the le is terminated with a carriage
return/line feed; otherwise, it is overlooked.
10 Click Save.
11 Click Sites and select the default site (the one whose IP Address is listed as *).
12 Click Aliases.
13 From the Web Server Aliases list, select the alias listed as *.
14 Click the Delete (–) button to delete the alias.
15 Click Save.