httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] Cannot browse an image file under a cgi directory.
Date Fri, 24 Feb 2006 14:58:34 GMT
On 2/24/06, Alvaro Listas <alvaro.listas@gmail.com> wrote:

> Problem: Cannot browse an image file under a cgi directory.

> DocumentRoot "/var/www/html"
> AddHandler cgi-script .cgi
> ScriptAlias /squidstats/ "/var/www/html/squid/"
> <Directory "/var/www/html/squid/">
>     AllowOverride All
>     Options ExecCGI
>     Order allow,deny
>     Allow from all
> </Directory>

Just remove the "Script" in the ScriptAlias.  The AddHandler and
Options ExecCGI already mark the scripts as being executable, so the
ScriptAlias is not necessary and prevents you from serving non-scripts
from the directory.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message