Kezdőlap › Fórumok › Debiannal kapcsolatos kérdések › CGI-BIN alatt a Phpból ismert basedir implemetálása
- This topic has 3 hozzászólás, 3 résztvevő, and was last updated 18 years telt el by
wikka89.
-
SzerzőBejegyzés
-
2008-05-14-18:00 #2161275Code:AddHandler cgi-script .cgi .pl
Options ExecCGI Includes FollowSymlinks2008-05-29-09:46 #2161276Hello! 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
2008-05-29-09:46 #2161277Hello! 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
2009-12-04-20:03 #1888157HEllo mindenkinek!
Volna egy kérdésem, apache 1.2 webszerver alatt van pár virtualhost php ban sikerült megcsinalni a basedir dolgot vitrualhostonénk, hogy mindenki csak a saját cuccát lássa, most szeretnék minden virtualhostra perl-t adni , és nemtudom van e ilyenre lehetőség pl apache confban/nem találtam ilyet/?
Válaszokat előre is köszönöm
-
SzerzőBejegyzés
- Be kell jelentkezni a hozzászóláshoz.