Hello! mutatom apache confot:
…
ScriptAlias /cgi-bin/ /var/www/domains/xy/cgi-bin/
AddHandler cgi-script .cgi .pl
Options ExecCGI Includes FollowSymlinks
AllowOverride None
Order allow,deny
Allow from all
és akkor lefuttatom a köv scripet:
#!/usr/bin/perl
print „Content-type: text/htmlnn”;
print „Hello Worldn”;
$file = ‘/etc/passwd’; # Name the file
open(INFO, $file); # Open the file
@lines = ; # Read it into an array
close(INFO); # Close the file
print @lines; # Print the array
és sajna jo az outputja, tehát azt szeretném elérni hogy a virtualhost könyvtárán felul ne lásson semmit a user, vmi módszert tud vki? előre is köszi
legutóbbi hsz