httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Can Le <lecan75...@yahoo.com>
Subject Re: [users@httpd] How to dsiplay photo from cgi-bin
Date Sun, 06 May 2007 04:15:53 GMT

Thank Joshua 
  
  Slive <joshua@slive.ca>  wrote:.....
  1. Move your photo.jpg someplace else.
  2. Reconfigure apache:http://wiki.apache.org/httpd/Errors/DirectoryAsScript
  
  On 1. It works when I moved image.jpg to htdocs: 
  
  http://localhost/image.jpg   
On 2. Link suggested: 
Alias /cgi-bin /var/www/cgi-bin
<Directory /var/www/cgi-bin>
 AddHandler cgi-script cgi pl
 Options ExecCGI
</Directory>

Should I add .jpg after "cgi pl " as "cgi pl jpg "
or add image.jpg into another directory such as:

/cgi-bin/photo/image.jpg ?

The file image.jpg is also working OK in cgi-bin 
when the output text file has a html tag for 
<img src.....jpg 

  
However, below url won't display:

http://localhost/cgi-bin/image.jpg
  Thank you

 
---------------------------------
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
Mime
View raw message