[LUGOS] Apache in default cgi-bin
Uroš Gruber
uros.gruber at sir-mag.com
Tue Dec 14 14:40:00 CET 2004
Blaz Podrzaj wrote:
> On Tue, 14 Dec 2004, Uroš Gruber wrote:
>
>
>>Tako imam sedaj, ampak bi se rad znebil nepotrebnih map in kreiranja
>>index.html itd. Prav tako tudi da url ostane na tem direktoriju.
>
> Kolikor jaz vem, ko enkrat na direktorij obesis ExecCGI, ne rabis vec
> ScriptAlias za ta direktorij oziroma cgi-bin direktorija v tem
> direktoriju. Enostavno nameces vse skripte v direktorij in zdravo.
>
Ja sej to deluje. Med tem casom sem bral httpd.conf in kot je razvidno,
cgi-bin uposteva mal drugace kot ce bi si kr en drug folder zbral in
dovolil executat cgi file. In ocitno DirectoryIndex ne prime na njega.
In tudi recimo teh ExecCGI ni potrebno notri dodajat, da dovoli izvajat
skripte. Vse kar imam v configu je
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the
client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/"
# "/usr/local/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/usr/local/www/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
In izvajanje executable filov, ne glede na koncnico deluje brez
problema. Mogoce bi moral ta file dat kam drugam in potem posebej
nastavit pravice za izvajanje v tej mapi.
lp
More information about the lugos-list
mailing list