I am trying to use a .htaccess file to allow access to only our
local domain,and am having a problem. Following is a copy of the file.
deny from all
allow from .triumf.ca
# allow from rodpc
allow from localhost
The problem is that the .triumf.ca (local) domain does not get accepted.
If I specify specific nodes in the local domain, they are allowed access.
All others are denied with the 403 error. In the log file, I see the
denial message for each attempt. The interesting thing is that there are
machines from off of our local domain that appear in the log file with full
domain names, or domains in numeric format, and these are granted access
(although to other places in the file system, owned by other users).
My theory is that somewhere in the system, the default domainname is not
being applied to the incoming request, and the requestor is therefore denied
access on the basis of not being in the required domain. This may not be
strictly a httpd problem, I realize, but I'm at wits end to solve the
This is SunOS 4.1.4, running the NCSA httpd ver 1.3.
There exists a file /etc/defaultdomain, with the triumf.ca domain name
listed in it, and if I run domainname, it reports triumf.ca, as expected.
An identical .htaccess file on a Linux machine works as expected.
Thanks in advance for any help.
TRIUMF --- University of British Columbia, Phone: (604)222-7449
Vancouver, BC, Canada. FAX: (604)222-7307