The httpd.conf and squid.conf files are the main configuration database files manipulated by the Web Ten Administration Server. Features available to Apache and Squid but not yet configurable in the Administration Server may be added to these files, creating a customized Web site configuration. Some common site customization examples are described below.
If a unique /cgi-bin folder is desired for each virtual host, a Finder duplicate copy of the /cgi-bin folder may be placed in the document root folder for each configured virtual host (see section See Virtual Host Configuration). A custom directive is then added to httpd.conf:
This feature can be used to selectively disable an installed plug-in on a per-virtual host basis. Using the NetCloak plug-in as an example, we demonstrate how to prevent NetCloak from serving .nclk (the suffix automatically registered by NetCloak) files accessed from VirtualHost 192.0.0.1.
But Squid can also provide a very powerful HTTP/1.1 proxy service. Squid proxy access control mechanisms are more extensive than those in Apache 1.2, particularly in the area of proxy blocking, or the ability to prevent access to certain undesirable sites based on URL, browser, day, hour of the day, even minute of the hour! A simple adjustment will enhance Squid's capabilities under WebTen to provide both acceleration and proxy service.
Because Squid proxy configuration is not yet exported into the WebTen Administration Server interface, direct manipulation of the Squid configuration file is necessary. While this may at first appear daunting to someone unfamiliar with UNIX database files, it is really quite a simple process using a text editor such as BBEdit.
There are some sample ACLs in the file which you can enhance using the examples shown below. In the examples, we block access to some less than desirable domains (aclname dirty_domains) and we restrict the downloading of files (aclname download_files) ending with .hqx, .bin, and .gz to all machines that access the proxy except for a trusted group of machines (aclname download_allowed).