PDA

View Full Version : Limit 1 Download at a time with Apache?



408nate08
17 Mar 2011, 10:16 PM
There are multiple tutorials that I've looked up through Google that show me how to limit my users to 1 download at a time using Apache (e.g.: http://skullboxx.net/kb/node/216). I've tried following the tutorial to the best of my novice SSH skills, but I'm always getting errors halfway through the tutorial.

From what I'm understanding, I need to get the "mod_limitipconn.c" from this site: http://dominia.org/djao/limitipconn.html

I'm using Apach 2.0.63, so I'm using the mod_limitipconn.c from here:
http://dominia.org/djao/limitipconn2.html

The problem is, whenever I try to "tar xzvf mod_limitipconn-0.23.tar.bz2" after downloading it, I get this error:


gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors

I've read that I can convert it to a tar.gz file, but I don't have Linux to be able to do that. Is there another approach that I can use to limit my guests' downloads to 1 file per IP?

Thank you!

- Nate :confused:

nnelson04
21 Mar 2011, 11:47 AM
Try this:

tar xvjf mod_limitipconn-0.23.tar.bz2
The "j" operator should let you unzip the bz2 file. Let us know if it works.