[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[users@httpd] processing cgi scripts


Confusion, I am running Apache 2.4 and am being asked to process cgi
scripts in various languages. I've got two directories made outside
the document root called language1 and language2, so the document root

the language directories are:


I've got this in a virtual host:

# Support language1 scripts
ScriptAlias "/language1/" "/usr/vhosts/"
<Directory "/usr/vhosts/">
Options None
AllowOverride None
Require all granted

I've also seen that options directive as:

Options +ExecCGI
and an AddHandler directive:
AddHandler cgi-script .lg1 .lg2

What situations would I use the +ExecCGI and AddHandler options vs the
ScriptAlias and a directory block?

Also I've got some scripts in a directory called /example and if I go
/example/script1.extension works fine, but if I just do /example I get
a 404 even though there's an index.extension file in it that is valid.
Can I correct this?


To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache2-users/msg02411.html on line 113
Call Stack
10.0008363496{main}( ).../msg02411.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache2-users/msg02411.html on line 113
Call Stack
10.0008363496{main}( ).../msg02411.html:0