Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Apache 2.0.x Upgrade + smbfs mounted content = zero byte d..

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  mod_unique_id  
Author Message
rosenfeld

External


Since: Oct 24, 2003
Posts: 1



(Msg. 1) Posted: Fri Oct 24, 2003 6:59 pm
Post subject: Apache 2.0.x Upgrade + smbfs mounted content = zero byte downloads
Archived from groups: alt>apache>configuration (more info?)

I have kept my MP3 files available on a password-protected site using =
Apache
1.3.x for a while now. I recently upgraded to Apache 2.0.x and I've come
across a problem that has me stumped.

I'm now running Apache 2.0.47 on Linux (Gentoo 2.4.20 kernel). I have my =
MP3
files on a Win 2k smbfs share that I mount read-only at /mnt/mp3. In
/home/httpd/htdocs I have a symbolic link "music" to the mounted share.

I have also tried replacing the symbolic link with a normal directory =
and an
Alias as follows:

Alias "/music" "/mnt/mp3"
<Directory "/mnt/mp3">
Options Indexes
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>

The indexes display just fine, showing all the files and the correct
attributes (size, etc.). But . . .=20

Using either configuration, when I try to download an MP3 from that link =
I
get a zero byte file. Here's an example of a wget. This used to work =
fine
with Apache 1.3.x



PROMPT $ wget http://www.mydomain.com/music/goodmusic.mp3
--00:39:44-- http://www.mydomain.com/music/goodmusic.mp3
=3D> `goodmusic.mp3'
Resolving www.mydomain.com... done.
Connecting to www.mydomain.com[xxx.xxx.xxx.xxx]:80... connected.
http request sent, awaiting response... 200 OK
Length: 3,264,370 [audio/mpeg]

0% [ ] 0 --.--K/s ETA --:--

00:39:44 (0.00 B/s) - Connection closed at byte 0. Retrying.



Note that it gets an HTTP response code of 200 and the correct size for =
the
file, but nothing is returned past zero bytes. There are no entries in =
the
error_log and nothing but the succesful GET record in the access_log.

If I make another symbolic link (or Alias) in the same directory to an =
MP3
on the local file system instead, it downloads correctly.

I can play the file with local MP3 players via the symbolic link to the
smbfs
mount using the paths /home/httpd/htdocs/music/goodmusic.mp3 or
/mnt/mp3/goodmusic.mp3, but as indicated above, not via the URL.

What could be causing the bad file download? Do any default related to =
this
change between Apache 1.3.x and 2.0.x? I did start with all new conf =
files
as part of the upgrade.

Thanks for taking a look.

--
Rob Rosenfeld
rosenfeld.DeleteThis@alum.mit.edu

 >> Stay informed about: Apache 2.0.x Upgrade + smbfs mounted content = zero byte d.. 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Sat Oct 25, 2003 9:40 am
Post subject: Re: Apache 2.0.x Upgrade + smbfs mounted content = zero byte downloads [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Rob Rosenfeld <rosenfeld RemoveThis @alum.mit.edu> wrote:
 > Note that it gets an HTTP response code of 200 and the correct size for the
 > file, but nothing is returned past zero bytes.

The "zero" byte file is generated by the client when the download process
begins, then something happen and he can't really read the data from the
server.
SMB is an uggly beast, remember that have been built by reverse-engineeering
Microsoft's protocols.
I suggest you copy the data in a local directory or similar, and discard
the SMB sharing.

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Apache 2.0.x Upgrade + smbfs mounted content = zero byte d.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Apache proxypass/upgrade - I;m wanting to upgrade my apache server too the latest build of apache and add the proxy mod to do proxy pass i was wondering if anyone could shine a little light on this situation. I looked at the doc on apache.org but since it is a small upgrade i see...

Upgrade Apache 1.3 -> 2.0: Problem with CGI scripts - Hi, I'm upgrading a web server from RedHat 7.2 + Apache 1.3 to RedHat 9 + Apache 2.0. I have a bunch of CGI scripts located in a directory and, for some reasons, must use RewriteRule. The solution suggestion in the FAQ ..

Newbie: Debian upgrade 2.2 to 3.0 stops apache - Just upgraded from Debian 2.2 to 3.0, fortunately on a test machine, but now Apache won't start. Problem I presume is related to Tomcat. Error given is Syntax error on line 69 of /etc/apache/httpd.conf: Invalid command 'JkWorkersFile', perhaps..

Apache 2 + mod_rewrite + content-length HTTP header - Hi, I use Apache 2 as a front server for a Zope web app, using mod_rewrite. Apache removes the content-length header from the HTTP response provided by Zope, and this is an issue in some situations as viewing a PDF file through MS Internet Explorer. ..

Repost: Version incorrect after upgrade - Hi, How can I correct the version of apache from old version to current version(i.e. 2.047) after upgrade? Since I checked the version was not update by executing 'httpd version'. Thanks, KT
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]