Mailing List Archive

mod_throttle working with directory configs??
Im having a problem getting mod_throttle to understand directory functions.

I have this in the general server config in httpd.conf:

<Directory /usr/home/alltracclub/public_html/media>
ThrottlePolicy volume 300M 1d
</Directory>

I see the definition in the throttle-status list, but it never catches anything.

I also have this defined in the virtual server for the alltrac site:

<Directory /media>
ThrottlePolicy volume 700M 1d
</directory>

Why doesnt either catch anything?


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_throttle working with directory configs?? [ In reply to ]
I use it in my VirtualHost directives on my system.


-=- RuneImp

----- Original Message -----
From: "Mohler, Jeff" <jeff.mohler@netapp.com>
To: <users@httpd.apache.org>
Sent: Monday, January 21, 2002 8:55 AM
Subject: mod_throttle working with directory configs??


> Im having a problem getting mod_throttle to understand directory
functions.
>
> I have this in the general server config in httpd.conf:
>
> <Directory /usr/home/alltracclub/public_html/media>
> ThrottlePolicy volume 300M 1d
> </Directory>
>
> I see the definition in the throttle-status list, but it never catches
anything.
>
> I also have this defined in the virtual server for the alltrac site:
>
> <Directory /media>
> ThrottlePolicy volume 700M 1d
> </directory>
>
> Why doesnt either catch anything?
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: mod_throttle working with directory configs?? [ In reply to ]
Then what do I have wrong in the 2nd definition im using in the virtual server?

-----Original Message-----
From: RuneImp [mailto:rune@imptech.net]
Sent: Monday, January 21, 2002 12:39 PM
To: users@httpd.apache.org
Subject: Re: mod_throttle working with directory configs??


I use it in my VirtualHost directives on my system.


-=- RuneImp

----- Original Message -----
From: "Mohler, Jeff" <jeff.mohler@netapp.com>
To: <users@httpd.apache.org>
Sent: Monday, January 21, 2002 8:55 AM
Subject: mod_throttle working with directory configs??


> Im having a problem getting mod_throttle to understand directory
functions.
>
> I have this in the general server config in httpd.conf:
>
> <Directory /usr/home/alltracclub/public_html/media>
> ThrottlePolicy volume 300M 1d
> </Directory>
>
> I see the definition in the throttle-status list, but it never catches
anything.
>
> I also have this defined in the virtual server for the alltrac site:
>
> <Directory /media>
> ThrottlePolicy volume 700M 1d
> </directory>
>
> Why doesnt either catch anything?
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: mod_throttle working with directory configs?? [ In reply to ]
Bingo..that might do it.

It was not working as a fully expanded path in the general server configs..so I didnt try it as part of a virtual server.

-----Original Message-----
From: Joshua Slive [mailto:joshua@slive.ca]
Sent: Monday, January 21, 2002 2:38 PM
To: users@httpd.apache.org
Subject: RE: mod_throttle working with directory configs??



> From: Mohler, Jeff [mailto:jeff.mohler@netapp.com]

> Then what do I have wrong in the 2nd definition im using in the
> virtual server?

> > I also have this defined in the virtual server for the alltrac site:
> >
> > <Directory /media>
> > ThrottlePolicy volume 700M 1d
> > </directory>
> >

I don't know mutch about mod_throttle, but that will not work unless /media
is really a directory off the filesystem root. You probably want <Directory
/usr/home/alltracclub/public_html/media>.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: mod_throttle working with directory configs?? [ In reply to ]
> From: Mohler, Jeff [mailto:jeff.mohler@netapp.com]

> Then what do I have wrong in the 2nd definition im using in the
> virtual server?

> > I also have this defined in the virtual server for the alltrac site:
> >
> > <Directory /media>
> > ThrottlePolicy volume 700M 1d
> > </directory>
> >

I don't know mutch about mod_throttle, but that will not work unless /media
is really a directory off the filesystem root. You probably want <Directory
/usr/home/alltracclub/public_html/media>.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: mod_throttle working with directory configs?? [ In reply to ]
Nope..still isnt catching a thing.

-----Original Message-----
From: Joshua Slive [mailto:joshua@slive.ca]
Sent: Monday, January 21, 2002 2:38 PM
To: users@httpd.apache.org
Subject: RE: mod_throttle working with directory configs??



> From: Mohler, Jeff [mailto:jeff.mohler@netapp.com]

> Then what do I have wrong in the 2nd definition im using in the
> virtual server?

> > I also have this defined in the virtual server for the alltrac site:
> >
> > <Directory /media>
> > ThrottlePolicy volume 700M 1d
> > </directory>
> >

I don't know mutch about mod_throttle, but that will not work unless /media
is really a directory off the filesystem root. You probably want <Directory
/usr/home/alltracclub/public_html/media>.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: mod_throttle working with directory configs?? [ In reply to ]
I just checked the mod_throttle page
http://www.snert.com/Software/Throttle/

and it should work within <Directory></Directory> but
I'm wondering what you have for your primary mod_throttle
setup. Do you have something like this in your httpd.conf?

# mod-throttle
<IfModule mod_throttle.c>
ThrottlePolicy none
ThrottleMaxDelay 0
ThrottleRefresh 10

# This can be text/plain or text/html
ThrottleContentType text/html

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

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

<Location /~*/throttle-me>
SetHandler throttle-me
</Location>
</IfModule>

Also, can you go to http://yourdomain.com/throttle-status
and get a listing of domains & there throttle settings?


-=- RuneImp
ImpTech - Web Design, Hosting & Computer Tech
http://imptech.net
rune@imptech.net


----- Original Message -----
From: "Mohler, Jeff" <jeff.mohler@netapp.com>
To: <users@httpd.apache.org>
Sent: Monday, January 21, 2002 2:41 PM
Subject: RE: mod_throttle working with directory configs??


Nope..still isnt catching a thing.

-----Original Message-----
From: Joshua Slive [mailto:joshua@slive.ca]
Sent: Monday, January 21, 2002 2:38 PM
To: users@httpd.apache.org
Subject: RE: mod_throttle working with directory configs??



> From: Mohler, Jeff [mailto:jeff.mohler@netapp.com]

> Then what do I have wrong in the 2nd definition im using in the
> virtual server?

> > I also have this defined in the virtual server for the alltrac site:
> >
> > <Directory /media>
> > ThrottlePolicy volume 700M 1d
> > </directory>
> >

I don't know mutch about mod_throttle, but that will not work unless /media
is really a directory off the filesystem root. You probably want <Directory
/usr/home/alltracclub/public_html/media>.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org