Can't access the html files inside the cgi-bin directory...

Joseph Robins jmrobins at tgix.com
Fri Jun 20 13:27:45 UTC 2003


Patrick Lam wrote:
> ScriptAlias /bugzilla/ "/usr/local/bugzilla/"
> 
> <Directory "/usr/local/bugzilla">
>             Options +ExecCGI
>             AllowOverride All
> </Directory>

You don't need both ScriptAlias and Options +ExecCGI.  They're both 
telling Apache to execute CGI scripts in that directory.  There is a 
difference, however.  ScriptAlias (if my memory serves correctly) tells 
it that _everything_ in that directory is a script, whereas Options 
+ExecCGI tells it that it's allowed to exec those things that it thinks 
are CGI.

All you need is an Alias directive to tell it where to find the 
directory, and then the Options +ExecCGI to let it execute the scripts. 
  So what you actually want is:

Alias /bugzilla/ "/usr/local/bugzilla/"

<Directory "/usr/local/bugzilla">
             Options +ExecCGI
             AllowOverride All
</Directory>


HTH.

_____________________________________________________________
Joe Robins				Tel:   212-918-5057
Thaumaturgix, Inc.			Fax:   212-918-5001
19 W. 44th St., 18th Floor		Email: jmrobins at tgix.com
New York, NY 10036			http://www.tgix.com

thau'ma-tur-gy, n. the working of miracles.




More information about the developers mailing list