I'd like to mount a windows 2000 server fileshare on an linux/apache
server to do some basic web serving. The web server works fine and
shows other content that's stored locally just fine.
mount -t smbfs -o username=smbusername,uid=apache,ro //server/share
but it complains that smbfs is deprecated and I should be using cifs.
For now, I'm using it anyway.
This seems to work:
mount.cifs //server/share mountpoint/ -
but it won't serve actual files. It allows browsing of the directories
and shows the filenames. It does not return an error, it just does not
send the file. I have confirmed that user 'apache' can read the file
by logging in as that user and viewing the file.
I tried a telnet test, using GET and Host commands captured from
firefox's LiveHTTPHeaders extension, like this:
telnet webserver 80
GET /directory/filename.jpg HTTP/1.1
The result looks like this:
HTTP/1.x 200 OK
Date: Tue, 11 Mar 2008 15:51:07 GMT
Server: Apache/2.2.4 (Unix) PHP/5.2.0
Last-Modified: Thu, 21 Feb 2008 16:07:30 GMT
Keep-Alive: timeout=5, max=100
Connection to host lost.