Re: How to dsiplay photo from cgi-bin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Thank Joshua

Slive <joshua@xxxxxxxx>
  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.
[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux