Chinaunix首页 | 论坛 | 博客
  • 博客访问: 260627
  • 博文数量: 82
  • 博客积分: 2477
  • 博客等级: 大尉
  • 技术积分: 725
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-06 23:24
文章分类

全部博文(82)

文章存档

2013年(1)

2012年(3)

2011年(15)

2010年(36)

2009年(27)

分类:

2009-08-25 16:21:41

A:
My Perl CGI script generates HTM file with
site_image
My perl file is in cgi-bin directory and everything works fine except oppening img.
When I create HTML file from the view/source in my IE6 it works fine (image is shown).
Any idea what may be wrong?
B:
webservers are not usually configured to render images in a CGI/executable mapped directory. The only thing that happens to files residing in these trees is that they are executed (ie. scripts etc.) Images and HTML docs should never reside in this tree.

Images, HTML documents, etc., should reside in the non-executable side of the webserver which is mapped so that the content is merely displayed (and *NOT* executed). This tree is usually named "htdocs" (in the Unix world, in MS-IIS it's named something else).

If you view the files statically (ie. via your filesystem), the configured limitations of the webserver mappings are not imposed, thus you can view the image successfully.

阅读(2018) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~