[NTLUG:Discuss] Viewing documentation in /usr/share/doc

Greg Edwards greg at nas-inet.com
Sat Dec 7 07:32:26 CST 2002


Chris Albertson wrote:
> First, make sure the user that runs apache has read access to /usr/share/doc.
> 
> Then, in the /etc/httpd/conf/commonhttpd.conf add
> 
> Alias /html_share/ /usr/share/doc/
> 
> <Directory /usr/share/doc>
>   Options -Indexes FollowSymlinks Includes
>   AllowOverride None
>   order allow,deny
>   allow from all
> </Directory>
> 
> 

It would seem to me that if you want to make it available to all you 
could simply make a link in you HTML document root directory to 
/usr/share/doc.  Just make sure the /usr/share/doc and sub-directories 
are readable by the user which Apache runs as.  Make sure your Apache 
config is setup to FollowSymlinks.  If you don't want others to access 
the docs don't advertise it's existence and do not allow dir listing of 
your document root directory.  I don't think you'd need to be any more 
anal about security as long as the dirs are not writeable by the Apache 
user.

-- 
Greg Edwards





More information about the Discuss mailing list