httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "eric" <fs...@centurytel.net>
Subject [users@httpd] can not access from outside link
Date Sat, 14 Dec 2002 03:15:00 GMT


 Dear  any httpd users


 I had a line in source of html of companyA
 <img src="http://www.linuxspice.com/cgi-bin/showphoto.pl"> </Br>

 and that suppose to powered by me , companyB
 in my C:\Apache2\cgi-bin\showphoto.pl
 -----------------------------------------------
 #!c:\perl\bin\perl.exe
 use strict;
 use CGI qw(:standard);
 print("Content-type:  Image/jpg\n\n");
 print("hello\n");
 local $/ = undef; # file slurp mode
 open(INFILE, "<C:\Apache2\computer2G0.jpg");
 my $img = <INFILE>;
 close(INFILE);
 binmode STDOUT;
 print $img;
 exit;
 -----------------------------------------
 I had computer2G0.jpg in my C:\Apache2 (server root)and C:\Apache2\htdocs
 (documentation root)

 attach my httpd.conf fle in my C:\Apache2\conf\

 it still can not the that photo be display, (only have small redcross on
the
 browser)

 Please hlep

 Sincere Eric
 www.linuxspice.com
 linux/window pc for sale


Mime
View raw message