Thanks for the help. I was getting close to the alias thing already but
it definetly focused me. There was already and alias set up in
access.conf for /usr/doc the alias name was even doc. The access was
set up as:
# Allow access to local system documentation from localhost
Alias /doc /usr/doc
<Directory /usr/doc>
order deny,allow
deny from all
allow from localhost
Options Indexes FollowSymLinks
</Directory>
By changing localhost to .domainname.com I was able to access the
directory from another host. Then I tried to get there from a windows
machine and was denied. This was due to using dhcp to get the ip
address and what I guess is a reverse dns lookup failing because when I
put the host in the dns setup using the ipaddress that dncp gave it, I
could access the directory. Now that I think about it, the host was
there but with an incorrect (pre dhcp) ipaddress. I guess I should try
it tomorrow without an entry at all in dns. I figured at somepoint the
disconnect between dhcp and dns would bite me. WINS maybe? I hate
running more stuff than I have to.
Now the problem is that when I use ssh to redirect port 80 from my
windows laptop through our firewall into the intranet server, and try to
access the link, netscape trys to find hostname/doc using the hostname
of the server rather than sticking to the localhost convention. I can
get to files that live in the same directory ok but this also occurs
when I try to access localhost/manual which should translate to
/home/httpd/html/manual that exists (apache docs). I am wondering if
this has to do with the cannonical name option being turned on in
httpd.conf but need to read the dos to learn more about it I guess.
One interesting thing is that linuxconf adds the subdirectory entries I
first did into httpd.conf so I guess this is not meant to get outside
the tree of documentroot.
Thanks again for the help.
Bret
Bret Hughes wrote:
>
> I am setting up a server to place some common stuff on for our office.
> One of the requests has been to place the /usr/doc directory structure
> on a link so people can get to all the documentation for the various
> packages installed.
>
> I created a symlink in /home/httpd/html to /usr/doc and when I try to
> access it via a link I get
>
> Forbidden
>
> You don't have permission to access /doc on this server.
>
> /var/log/httpd/error_log has this every time I try to access it:
>
> [Mon Mar 27 14:10:49 2000] [error] [client 192.168.0.128] client denied
> by server configuration: /usr/doc
>
> I went into linuxconf and selected may follow symlinks and Indexes under
> the defaults setting of Apache.
>
> I also created a subdirectory spec for doc and selected the same things
> for it over the defaults.
>
> What am I missing?
>
> I can see where linuxconf restarted httpd after changing the settings.
>
> Any help is appreciated.
>
> BTW I am running this on RH6.0 with all the latest updates and apache V.
> 1.3.9-4 from the rh6.1 cd rpm.
>
>
> Bret
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.