Forum Moderators: bakedjake

Message Too Old, No Replies

Problem with file access on Apache/Bugzilla install

Apache Configuration Problem for Image file access

         

cord_thomas

3:23 pm on May 21, 2003 (gmt 0)

10+ Year Member



I have bugzilla working on Debian/Apache 1.3x. Now, at work i have to install on our intranet with Redhat8/Apache 2.x and have the following problem.

The default page, index.cgi will not show the ant.jpg image - in the log it says: "Premature end of script headers: ant.jpg, referer: [servername...]

Additionally, it gives the same error for the two .js files.

In reading posts here about .htaccess and DIRECTORY directive, i don't know what i have done wrong.

Also, the files in question, *.jpg and *.js are -rw-r----- as i believe they should not be executable and owned by apache.apache - the owner of apache.

This is setup below /var/www/cgi-bin/bz. I have ScriptAlias set to this path and .cgi and .pl files execute properly.

So, i believe it is some permission or Type issue - any clues would be appreciated, i have been battling for a few hours and have had NO progress.

eaden

3:36 pm on May 21, 2003 (gmt 0)

10+ Year Member



edit : sorry, i mis read!
This is my setup, I don't know if it's what you're looking for..

Also, I think scriptalias is only used for a cgi-bin directory, where everything is a CGI.

<Directory /var/www/users/mysite.com/htdocs/bugs/>
AllowOverride All
Options ExecCGI
Order allow,deny
Allow from all
</Directory>

You may have cgi turned on site wide?

cord_thomas

3:55 pm on May 21, 2003 (gmt 0)

10+ Year Member



eaden

Thank you.

I was advised by an experienced apache person to stay away from ExecCGI - but with no explanation. I don't believe i have cgi turned on site-wide (though admitedly, i am not entirely sure what you mean by this).

Unfortunately the bugzilla project's web structure (or at least redhat's version of it) is not very well structured, mixing cgi, binary files, configuration scripts all together in one heap. That said, i will try to use ExecCGI and remove the scriptalias reference - but the other way works on my debian machine - so it is definitely a permission or file type handling sort of issue -

do you have an .htaccess file in the bugs folder?

Thanks again

cord_thomas

3:59 pm on May 21, 2003 (gmt 0)

10+ Year Member



eaden

That did it - now to learn about ExecCGI.

Thanks.