Mailinglist Archive: opensuse (4053 mails)

< Previous Next >
Re: [SLE] apache config
On Thursday 09 August 2001 9:33 am, Francesco Scaglioni wrote:
> Hi,
>
> Apolgies if this is OT (in which case please flame constructively at
> will).
>
> I have he following in httpd.conf:
>
> Directory /home/*/public_html>
> AllowOverride FileInfo AuthConfig Limit
> Options MultiViews Indexes SymLinksIfOwnerMatch Includes ExecCGI
> # Options MultiViews Indexes SymLinksIfOwnerMatch Includes NoExec
> <Limit GET POST OPTIONS PROPFIND>
> Order allow,deny
> Allow from all
> </Limit>
> <LimitExcept GET POST OPTIONS PROPFIND>
> Order deny,allow
> Deny from all
> </LimitExcept>
> </Directory>
>
>
> <Directory /home/*/public_html/cgi-bin>
> AllowOverride
> Options ExecCGI
> SetHandler cgi-script
> </Directory>
>
> Yet am still unable to run cgi from under /public_html. The scripts
> in question run fine from /usr/local/httpd/cgi-bin

You need something like:

<Directory ~ "/home/[a-z]+/public_html/cgi-bin">
Options ExecCGI
AddHandler cgi-script .cgi .pl
</Directory>

or, for the latest Apache server:

<DirectoryMatch "/home/[a-z]+ ... >
...
...
</DirectoryMatch>

This translates to servername/~username/cgi-bin/

M

< Previous Next >
References