You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by infotechsys <in...@pivot.net> on 2002/03/20 18:51:46 UTC

TO add "AddType or not.

Hi,
First I'll show my tree structure so that you can see what
I'm trying to do. Top of the tree is /usr/local/www/system-name.
Under system-name I have subdirectories like images, customer, inventory.
The images directory holds all the images for that system and they
are gif file format. When  I put this piece of code in my cgi script,
<body background="/system-name/images/bg.gif", do I have to put
an "AddType images/gif gif"in httpd.conf. I didn't think I
have to because that mime type is in mime.type.
The error I'm getting is below. Am I looking in the wrong place
to solve this problem?
[error] (8)Exec format error: exec of 
/usr/local/www/system-name/images/bg.gif failed
[Wed Mar 20 12:03:51 2002] [error] [client 127.0.0.1] Premature end of 
script headers: /usr/local/www/system-name/images/bg.gif
Thanks.
Wayne

 
                                   


---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: TO add "AddType or not.

Posted by infotechsys <in...@pivot.net>.
Joshua Slive wrote:

>On Wed, 20 Mar 2002, infotechsys wrote:
>
>>[error] (8)Exec format error: exec of
>>/usr/local/www/system-name/images/bg.gif failed
>>[Wed Mar 20 12:03:51 2002] [error] [client 127.0.0.1] Premature end of
>>script headers: /usr/local/www/system-name/images/bg.gif
>>
>
>This error means that apache thinks bg.gif is a cgi script and is trying
>to execute it.  The most likely cause is that you stuck bg.gif in a
>directory that is a target of ScriptAlias.  Don't do that.
>
Your right. I did do this. So, I guess I got to restructure my tree in such
away that my image directory is not part of any ScriptAlias directive. 
Is that
correct?
Wayne

>
>
>It is very unlikely that AddType has anything to do with this.
>
>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@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>



Re: TO add "AddType or not.

Posted by Joshua Slive <jo...@slive.ca>.
On Wed, 20 Mar 2002, infotechsys wrote:
> [error] (8)Exec format error: exec of
> /usr/local/www/system-name/images/bg.gif failed
> [Wed Mar 20 12:03:51 2002] [error] [client 127.0.0.1] Premature end of
> script headers: /usr/local/www/system-name/images/bg.gif

This error means that apache thinks bg.gif is a cgi script and is trying
to execute it.  The most likely cause is that you stuck bg.gif in a
directory that is a target of ScriptAlias.  Don't do that.

It is very unlikely that AddType has anything to do with this.

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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org