I am attempting to use Apache 1.3.3 on UnixWare 7 as a non-caching proxy
server and would like to restrict access or require authorization for
requests to this proxy. Access is to be granted to users from subnet
192.168.0. Users from outside this subnet are to be prompted for a user name
and password which will be checked against a file of valid users and
I configured Apache with
./configure --prefix=/usr/local/apache --enable-module=proxy
Following are the relevant portions of my httpd.conf file:
deny from all
allow from 192.168.0
ProxyPass / http://www.encyclopedia.com/
ProxyPassReverse / http://www.encyclopedia.com/
If I turn off the authorization checks, the proxy is working fine. If I
turn on the authorization checks, I can connect fine from the 192.168.0
subnet. But if if I connect from outside the 192.168.0 subnet, I receive no
prompt for username and password but receive the following message in the
HTTP/1.0 407 Proxy Authentication Required
Date: Fri, 15 Jan 1999 08:34:58 GMT
Server: Apache/1.3.3 (Unix)
Proxy-Authenticate: Basic realm="foobar"
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<TITLE>407 Proxy Authentication Required</TITLE>
<H1>Proxy Authentication Required</H1>
This server could not verify that you
are authorized to access the document you
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.<P>
<ADDRESS>Apache/1.3.3 Server at www.foobar.org Port 9100</ADDRESS>
The results are the same with either the Netscape 4.5 or IE 4.0 browser.
Does anyone have suggestions on how to achieve the desired results?
Thanks for your help!