LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache 2.0.48 issues (https://www.linuxquestions.org/questions/linux-software-2/apache-2-0-48-issues-153892/)

Malibyte 03-05-2004 01:58 PM

Apache 2.0.48 issues
 
I recently upgraded one of my servers from fully-patched RedHat 7.3 to Fedora Core 1 (also with all of the necessary updates). The web server, which had been running Apache 1.3.27 without any problems, was updated to 2.0.48. I'm now having problems with displaying text files (example: http://www.malibyte.net/iptables/scr...ables-generic, which had previously displayed correctly, with newlines where they should be) and image files, such as JPEGs, alone (they display OK if they're referenced in an HTML document...example: http://www.malibyte.net/Supra/85supra.html (which displays the images OK) and http://www.malibyte.net/Supra/85-lr-med.jpg, which is an image file alone - displays as ASCII characters only). The configuration file has been gone over thoroughly and compared to others; no answers found. Anyone have a fix for this? Thanks.

david_ross 03-05-2004 02:07 PM

It sounds like you haven't configured your mime types correctly.

Did you use the default config file that came with apache 2 or did you just keep your old version?

Malibyte 03-05-2004 02:15 PM

Quote:

Originally posted by david_ross
It sounds like you haven't configured your mime types correctly.

Did you use the default config file that came with apache 2 or did you just keep your old version?

I modified the one which came with 2.0.x. Are there any particular parts of the file I should post which would help clarify this?

Thanks!

david_ross 03-05-2004 02:22 PM

Just check that mod_mime and mod_mime_magic are compiled and loaded. Also make sure you are referecing valid mime configuration files and that they are readable.

Malibyte 03-05-2004 05:02 PM

The modules are present:

/usr/lib/httpd/modules/mod_mime.so
/usr/lib/httpd/modules/mod_mime_magic.so
/usr/libexec/webmin/apache/mod_mime.pl
/usr/libexec/webmin/apache/mod_mime_magic.pl


and called by the conf file:

LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule mime_module modules/mod_mime.so


<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>


(though httpd -l does not show this one as compiled in....(?))

[root@firefox: /home/rcs]$ httpd -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c


The mime-magic configuration file is present and appears OK:

[root@firefox: /]$ lsl /etc/httpd/conf
total 295
.
.
-rw-r--r-- 1 root root 12959 Nov 19 05:40 magic


Any other possibilities????

Thanks again - Bob

david_ross 03-06-2004 08:00 AM

Do you have a directive loading your mime types - ie:
Code:

<IfModule mod_mime.c>
    TypesConfig /etc/apache/mime.types
</IfModule>


Malibyte 03-06-2004 07:39 PM

Yep.


# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
#
TypesConfig /etc/mime.types

The file exists, and contents are correct.....!

Malibyte 03-08-2004 11:02 PM

Interestingly, I had to use a Windoze machine this afternoon...I hit my site with Internet Exploiter, and the images rendered just fine. Tried it again with Mozilla 1.5, Firefox 0.8, and Konqueror 3.1.0 under Linux - no joy. There were no problems with *any* browsers before the upgrade from 1.3.27.

Wonder why M$'s browser renders the images correctly and the Linux browsers don't??

Yahooligan 03-10-2004 04:54 PM

Hi Forum,

(first of all: sorry about my english).

we've the same problem too.

Images below 500 Byte works and displayed fine, any other doesn't.
*.HTML - Files sends an 403 - Error, *.HTML, *.PHP and so on works fine.

JS - Files works - or not. :-)

Apache writes an 206-Error into the logfiles (Images)...

We've Fedora RedHat 9.0, Apache 2.0.48 and so on.

... and tomorrow our working servers shutting down and the new one must work correctly ... don't know how :scratch:

If there is any people who have an idea, please tell us.


Thanks for your patience
Alex


All times are GMT -5. The time now is 12:19 PM.