[LUGOS] perl-cgi apache virtual host
Martin
martin at amadej.si
Wed Jan 22 13:08:13 CET 2003
OK. Zdej mi res ni vec jasno.
Ce dam cgi skripto nekam drugam kot v /home/bb torej imam tako konfiguracijo:
"
<VirtualHost 213.XX.XX.XX>
ServerAdmin root at krneki.si
DocumentRoot /home/bb/www/
ServerName www.virtualhost.com
CustomLog logs/vfdsfsdfsda.com-access_log combined
Alias /cgi-bin/ "/home/krneki/"
<Directory "/home/krneki">
Options ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
"
Se cgi izvede pravilno.
Vedar jz hocem imet cgi bin v home direktoriju od bb uporabnika zato prenesem
vsebino /home/krneki spet v /home/bb/cgi-bin in httpd.conf spremenim takole:
"
<VirtualHost 213.XX.XX.XX>
ServerAdmin root at krneki.si
DocumentRoot /home/bb/www/
ServerName www.virtualhost.com
CustomLog logs/vfdsfsdfsda.com-access_log combined
Alias /cgi-bin/ "/home/bb/cgi-bin/" <-- sprememba
<Directory "/home/bb/cgi-bin"> <<-- sprememba
Options ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
"
In perl cgi se spet ne izvede z napako:
"
[Wed Jan 22 11:55:55 2003] [error] (13)Permission denied: exec of
/home/bb/cgi-bin/test.pl failed
[Wed Jan 22 11:55:55 2003] [error] [client 192.168.0.2] Premature end of
script headers: /home/bb/cgi-bin/test.pl
"
V cem je point. Mogoce Virtualhostov DocumentRoot nekje pobere, da ne sme
nikjer pod sabo tudi, ce je so direktoriji s pravicami definirani, izvajat
cgi skript?
Kdo zna pomagat?
L.P.
-Martin
More information about the lugos-list
mailing list