Cannot view files over 250 bytes
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.
Is it possible this has something to do with the mime.types file or the default mime type set in the httpd.conf file?
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.
|All times are GMT -5. The time now is 08:17 AM.|