On 5/6/07, Can Le <[EMAIL PROTECTED]> wrote:
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 "

No. That is exactly the point: you DON'T want jpg to be treated as a cgi-script.

or add image.jpg into another directory such as:

/cgi-bin/photo/image.jpg ?

It doesn't matter whether it is in a subdirectory or not.


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

For apache there is absolutely no difference between these two cases,
so it must be some other error you're making. Are you sure the img src
points to the same place? Are you sure you cleared your cache, etc?

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to