On Sunday 22 September 2002 8:41 pm, you wrote:
i read this just as i was wondering how to serve some files from a  directory 
outside /var/www/html/

i have the following entries in my commonhttpd.conf:
<Directory /var/www/html>
    Options -Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

<Directory /path/to/files>
        Options Indexes FollowSymLinks
        Order allow,deny
        Allow from all
</Directory>

also, there is a symlink in /var/www/html that points to /path/to/files, i'm 
still missing something, as i get 'you don't have permission' errors,
am i right in thinkng that the 'followsymlinks' in the second <directory> 
section does not refer to the the symlink to /path/to/files but to symlinks 
'within' there? i.e. it's superfluous here?

does the '-' before 'Indexes' in the first section apply to all the options 
or just 'Indexes'?

the permissions of /path/to/files are 0755 so whatever user httpd runs as 
should be able to see them yes?

do i have to restart httpd in a special way, i'm just 'killall httpd' and 
then 'httpd' ?

bascule

> ly work.
>
> So in summary, what you need to do is enable the actual path
> /path/to/mysql to be allowed using a <Directory></Directory> set of
> tags.  Do it somewhere in the vicinity of where /var/www/html is
> defined.  An example:
>
> <Directory /path/to/mysql>
>    Options +Indexes
>    # if you want to allow ftp style file lists
>    Allowoverride all
>    Order allow,deny
>    Allow from all
>    # Could also do something like "Allow from 192.168.1.0/255.255.255.0"
>    # Deny from _something_ could also be used to allow specific hosts/nets
>
> Blue skies...                 Todd

-- 
All Hell hadn't been let loose. It was merely Detritus. But from a few feet 
away you couldn't tell the difference.
(The Fifth Elephant)

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to