On 5/4/07, Can Le <lecan75228@xxxxxxxxx> wrote:
Hi friends, Apache2 can display photo.jpg in my localhost/htdocs but my localhost/cgi-bin can't show the same photo.jpg. Please show me why or the missing AddType or AddHandler ?
By using a ScriptAlias directive to map a cgi-bin directory, you are explicitly asking for everything in that directory to be treated as a CGI script. There are two solutions: 1. Move your photo.jpg someplace else. 2. Reconfigure apache: http://wiki.apache.org/httpd/Errors/DirectoryAsScript 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: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx