Web Hosting Talk







View Full Version : Problems installing mod throttle


seattlite
08-20-2001, 09:57 PM
Hello,

I was using this tutorial (http://www.allan.org/mod_throttle_raq.html) on how to install mod throttle on a raq 4. When I got to the "make" step and typed make, I got this.

make: apxs: Command not found

Does anyone know of a more reliable tutorial, or perhaps a fix for this?

webtech
08-21-2001, 08:17 AM
Before you tell the server to 'make' just do

pico Makefile
where it says

___________=apxs
make that say = /usr/sbin/apxs

then do make

seattlite
08-21-2001, 09:07 PM
sorry for this question, but

where EXACTLY does the following go in the httpd file?

<IfModule mod_throttle.c>
ThrottlePolicy Volume 20G 30d
</IfModule>
<Location /throttle-me>
SetHandler throttle-me
</Location>


AND this

<Location /throttle-status>
SetHandler throttle-status
</Location>

**********************

webtech
08-21-2001, 09:21 PM
Originally posted by seattlite
sorry for this question, but

where EXACTLY does the following go in the httpd file?

<IfModule mod_throttle.c>
ThrottlePolicy Volume 20G 30d
</IfModule>
<Location /throttle-me>
SetHandler throttle-me
</Location>


AND this

<Location /throttle-status>
SetHandler throttle-status
</Location>

**********************

<IfModule mod_throttle.c>
ThrottlePolicy Volume 20G 30d
</IfModule>
<Location /throttle-me>
SetHandler throttle-me
</Location

this goes for each virtual site except the main site right before </VirtualHost> but notice 20G and 30d. That is 20GB within 30 days. Might want to change that

<Location /throttle-status>
SetHandler throttle-status
</Location>

this goes right before </VirtualHost> on the main site.

seattlite
08-22-2001, 12:52 AM
Ok seems as if I did everything right cept when I go to virtualdomain.com/throttle-me nothing comes up (the 404 error).

maindomain.com/throttle-status seems to be working fine.

Also using the code below, can I change what virtual directory you can find stats under, or will this mess up some internal configuration for mod throttle?

I also noticed it in two places(in the module declarations, and the virtual hosts). Do I have to change them both.

<Location /throttle-me>
SetHandler throttle-me
</Location >

I also wanted to know how I could password protect these directories, I mean I dont have the ability to upload a PHP script to force a login... Is it possible?

Sorry for the spread out questions....

Thanks for the help!

chightech
12-27-2004, 12:26 PM
<Location /throttle-status>
SetHandler throttle-status
</Location>

this goes right before </VirtualHost> on the main site. [/B]

The main site is....?? Just confused about that.. because
http://mydomain.com/throttle-me works for me

but not http://mydomain.com/throttle-status

thanks for your help!