Re: Images don't load on CIFS share

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixed it, "EnableSendfile Off" did the trick.

On 11/24/06, Yvo van Doorn <yvo.vandoorn@xxxxxxxxx > wrote:
I think I have come across a very odd problem. Googling and going through archieves have left my questions unanswered so far. I'm completely stumped thus far on what is causing this.

I am running a self compiled version of Apache 2.2.3 on Debian 4.0 (etch/testing). I have a Virtualhost setup with a Directory directive that has "Options FollowSymLinks Indexes" enabled. On the file system side in this directory are two symlinks. One points to my home directory and the other to a CIFS mounted share. The CIFS mounted share that has a lot of images from content all on a Windows run file server. Furthermore the share is mounted with file mode 755, setting the execute bit for groups & guests. The UID and GID are set correct as well.

The 2nd symlink points to my personal home directory which has a bunch of images set with 755 permissions as well.

When I click on the symlink to my home directory and then click on an image (say picture1.jpg or picture2.png), it loads up fine in the browser. When  I click on the symlink which points to my CIFS mounted share and try to load up a picture from this point on, instead of showing the image, it shows the URL path (not filesystem) to the image, for example:
http://ares.rblc.com/media/Activities/Templates/T001/Template_Media/Template_Art/Skin_1/BKG_T001.jpg . If I try to add that image to a HTML file on the same server, the image shows up as broken.

The access log shows this:
152.159.138.21 - - [24/Nov/2006:21:15:49 -0800] "GET /media/Activities/Templates/T001/Template_Media/Template_Art/Skin_1/BKG_T001.jpg HTTP/1.1" 200 110554 " http://ares.rblc.com/media/Activities/Templates/T001/Template_Media/Template_Art/Skin_1/ " "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv: 1.8.1) Gecko/20061010 Firefox/2.0"

There are no entries in the error log (which is set to Debug).

I don't think my virtual host setting is incorrect for the local filesystem, but is there something in addition I need to set in the conf file to allow images to be loaded.

This is what my conf file contains:

<VirtualHost *:80>
    DocumentRoot /usr/local/apache2/htdocs/ARES
    ErrorLog /usr/local/apache2/logs/ares_error_log
    LogLevel debug
    <Directory /usr/local/apache2/htdocs/ARES/media/Activities>
        Options FollowSymLinks Indexes
    </Directory>
    <Directory /usr/local/apache2/htdocs/ARES/media>
    Options FollowSymLinks Indexes
    </Directory>
    ServerName ares.rblc.com
</VirtualHost>


This is the mount settings (username & password masked) for the CIFS mount:
//mhebotfil02/data      /mnt/mhebotfil02        cifs   username=****,password=*****,workgroup=mhe,file_mode=0644,uid=1007,gid=210  0       0

The listing for the media directory containing the two symlinks:
lrwxrwxrwx  1 root     root         31 2006-11-21 18:35 Activities -> /mnt/mhebotfil02/LGT/Activities
lrwxrwxrwx  1 root     root         11 2006-11-22 14:46 yvov -> /home/yvov/

I know a lot of info to start out with, and if there is anymore  I can provide be sure to let me know.

Yvo


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux