LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Don't displaying images from a Mounted CIFS folder (https://www.linuxquestions.org/questions/linux-server-73/dont-displaying-images-from-a-mounted-cifs-folder-592860/)

GSound 10-18-2007 05:25 PM

Not displaying images from a Mounted CIFS folder
 
Hello guys, i have a little problem.

I have set up a web server in a linux box [192.168.1.10]. The running web site uses images from a FileServer in other linux box [192.168.1.20].
So I cifs mounted a folder in the WebServer referring to the fileserver shared folder.

Mount command:
Code:

mount.cifs //192.168.1.20/share_images_folder$ /var/www/html/app1/images -o user=user,pass=1234567,rw,nolock
Samba Configuration:

Code:

[share_images_folder$]
        comment = Test
        path = /usr/data/samba/shared_images
        guest ok = yes
        browseable = yes
        writeable = yes
        create mask = 777
        directory mask = 777
        follow symlinks = yes

It looks pretty fine. They can be seen by terminal console. But if I try to see them with the web application, they don't display.

If I go to:
Code:

http: //192.168.1.10/app1/images/x.jpg
It does not display. It shows a failed imagen icon with the X.
I've been looking for this solution for weeks. I not sure if it is related with any Samba or Apache Configuration.

Thank you for your time!
GSound

GSound 10-18-2007 11:40 PM

Any ideas?? plz...

GSound 10-19-2007 12:17 PM

I was helped with this problem. There is an issue with the Apache Server.

I had to add these lines:

Code:

<Directory "/path-to-nfs-files">
EnableSendfile Off
</Directory>

More info in: http://httpd.apache.org/docs/2.0/mod...EnableSendfile

Hope you can find it helpful,

GSound


All times are GMT -5. The time now is 06:25 PM.