Jump to content
php.lv forumi

Apache 2.2.9 ScriptAlias palaisana


Recommended Posts

Konfiguracijas failos, zem ScriptAlias /cgi-bin/ "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/" pieliku savu ScriptAlias /cgi/ "C:/Program Files/Apache Software Foundation/Apache2.2/cgi/". Tani cgi folderi stav fails ar paplashinajumu .cgi un kodu

 

\n"; print "
\n"; print "
Katalogs
\n"; print "
\n"; print substr($ENV{'PATH_INFO'},1); print "
\n"; print "
Prece
\n"; print "
"; print $ENV{'QUERY_STRING'}; print "
\n"; print "
\n"; print "\n"; print ""; 1;

 

AddHandler cgi-script .cgi .pl esmu uzlicis shadu ieksh IfModule mime_module.

Publiskaja direktorija stav tuksh index.html fails.

 

Atverot localhost, paradas balta lapa, kapec tas cgi scripts neizpildas?

Link to comment
Share on other sites

Ja pieprasijums tiek rakstits pa taisno http://127.0.0.1/cgi-bin/manaprogramma.exe, tad viss strada, ka var automatiski palaist sho programmu vai nav kas pie virtual server jaraksta?

Link to comment
Share on other sites

Jā, man arī tāds pats mājasdarbs :)

 

Alias /cgi "C:/Program Files (x86)/Apache Software Foundation/superdev/cgi"

 

<Directory "C:/Program Files (x86)/Apache Software Foundation/superdev/cgi">

Options FollowSymLinks ExecCGI

SetHandler cgi-script

Order allow,deny

Allow from all

</Directory>

 

šādi man aizgāja, bet ar ScriptAlias arī dzīvu nedabūju :)

Link to comment
Share on other sites

to: yuppio <Directory>...</Directory> ir jaraksta ieprieksheja vieta, vai varbut divi directory?

Link to comment
Share on other sites

×
×
  • Create New...