Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am running Fedora Core 7, Apache 2.2, MySQL 5.0, & PHP 5.2.2.
For some reason - when trying to view files through a browser (IE 7 on Windows or FireFox 2 on Fedora) it appears that any file over 250 Bytes will not display. The files are located in the /var/www/html directory and have the correct permissions. I have created several .GIF images it all different size ranges and have come to conclude that the image will not display if it is over 250 Bytes. If the image is over 250 Bytes, you will only see the red "x".
I do not have an example fo this that can be viewed publically so if you want to see what I am talking about you will have to recreate it yourself but I was hoping that someone would be able to shed a little light on this for me.
I have looked into the httpd.conf file to see if it would have anything to do with this. I have found that the "LimitRequestBody" Directive in the httpd.conf file is set by default to 0 which means unlimited. I have tried setting this to a certain limit and that did not work.
Last edited by finaidques; 10-08-2007 at 04:28 PM.
I have figured out why this was happening and figured I would post to the forum for future use.
What was happening was I was mounting a Windows share using the CIFS protocol. I was using that mount point as the root directory of the Apache webserver (/var/www/html). I am not exactly sure why or what the limitation was which was keeping files over 250 bytes from displaying but how I determined it was the CIFS mount was...
I first moved a file into the Windows share (CIFS mount point) that was over 250 bytes and tried displaying it using Apache. It would not display. I then took the same file and FTP'd onto the Linux machine and moved it into the /var/www/html directory. At this point it displayed properly.
Like I said I don't know why this happened but I think it is important to state that the CIFS protocol works well for certain purposes. In this case, the way I was using it was not appropiate. WHY - I don't know. However, if you are looking for a way to share files between Windows and a Linux machine - without publishing them on a webserver - then CIFS is a good option.