You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jefferson Midei <jm...@wmweb.com.br> on 2003/09/05 13:08:45 UTC
[users@httpd] OTHER KIND OF LIMITATION
Dear Sirs,
Seems to me that to limit the bandwidth using apache 2.0.44 is not so
easy... So, I'm thinking about to limit my bandwidth using another way...
My WebServer (Apache 2.0.44, in a linux box kernel 2.4.21) is connected to a
256 kbps link. And studing my weblogs (using webalizer), I discovered that
part (50%) of the use of my bandwidth are users downloading files like .EXE,
.MP3, .AVI, .PDF, .DOC, .ZIP, etc... The other part of the use of my
bandwidth are users downloading "www" files, like .HTM*, .PHP*, .GIF, .PNG,
.JPG, etc...
I would like to limit the bandwidth use for the first files types (.EXE,
.PDF, etc...) just to 15% of my bandwidth... These files are downloaded
through the Apache WebServer, so, I would like to know if Apache will limit
that for me, and how...
Thanks,
JM...
-----Mensagem Original-----
De: "Leif W" <wa...@usa.net>
Para: <us...@httpd.apache.org>
Enviada em: quinta-feira, 4 de setembro de 2003 16:59
Assunto: Re: [users@httpd] LIMIT BANDWIDHT USING APACHE 2.0.44
> Note, this reply may be off topic.
>
> This is a good question I think, as other web servers may already have
some
> feature like this, so there should be some focus on systems running Apache
> to find equivalent solutions, in order to continue to compete.
>
> I've done some searching with Google for "Linux host based bandwith
> management shaping" (and variations), but it's hard to find anything
> specific.
>
> First, I found the Apache mod_bandwidth page (
> http://www.cohprog.com/v3/bandwidth/intro-en.html ), but the latest
release
> was 2003-01-12, and there's no mention of Apache 1.3.x or 2.0.x anywhere
in
> the sparse documentation, so I am leery of this seemingly stale software
> project.
>
> The only relelvent stuff I found was the ADSL Bandwidth Management HOWTO (
> http://www.linux.org/docs/ldp/howto/ADSL-Bandwidth-Management-HOWTO/ ) and
> the HTB queue patch (included with kernel 2.4.20 and higher,
> http://luxik.cdi.cz/~devik/qos/htb/ ).
>
> Linux Advanced Routing & Traffic Control ( http://www.lartc.org/ ).
>
> Unfortunately the only bandwidth management I could see were IP-based.
>
> I did come across various commercial hardware products claiming to do
> host-based bandwidth management, but I did not spend much time looking at
> those, as I do not have such money to throw away, when there's bound to be
> some way to do it better, for free (eventually).
>
> Leif
>
> > ----- Original Message -----
> > From: "Tomas Larsson" <la...@telia.com>
> > To: <us...@httpd.apache.org>; "'Jefferson Midei'" <jm...@wmweb.com.br>
> > Sent: Thursday, September 04, 2003 1:28 PM
> > Subject: SV: [users@httpd] LIMIT BANDWIDHT USING APACHE 2.0.44
> >
>
> > Hi Jefferson.
> > Have you got any solutions yet, I'm allso looking for the same, haven't
> > found anything yet, and no reply from the group either.
> >
> > With best regards
> >
> > Tomas Larsson
> >
> > Verus amicus est tamquam alter idem
> >
> >
> > All messages originating from me are scanned with the latest updates of
> > Norton Antivirus 2K3.
> >
> > > -----Ursprungligt meddelande-----
> > > Från: Jefferson Midei [mailto:jmidei@wmweb.com.br]
> > > Skickat: den 2 september 2003 19:34
> > > Till: users@httpd.apache.org
> > > Kopia: Luiz Eduardo
> > > Ämne: [users@httpd] LIMIT BANDWIDHT USING APACHE 2.0.44
> > > Prioritet: Hög
> > >
> > >
> > > Dear Sirs,
> > >
> > > My name is Jefferson Midei, and I'm in Brasil.
> > >
> > > I'm using a Linux Server, Conectiva (RedHat) 9.0, kernel 2.4.21, and
> > > WebServer Apache 2.0.44.
> > >
> > > I have about 150 virtual domains in my Apache Server, and I'm using a
> > > "namebased" configuration (sharing one IP)...
> > >
> > > I need to limit the usage of my bandwidth per virtual domain, and I
> don't
> > > know how to do that, or what I need to do that...
> > >
> > > I looked for "limit bandwidth" in the hystory of this maillist, but I
> just
> > > found solutions for Apache 1.3 (mod_bandwidth)...
> > >
> > > Please, help me...
> > >
> > > Thanks,
> > >
> > > Jefferson Midei
> > > jmidei@wmweb.com.br
> > >
>
>
>
> ---------------------------------------------------------------------
> 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
> " from the digest: users-digest-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
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
SV: [users@httpd] OTHER KIND OF LIMITATION
Posted by Tomas Larsson <la...@telia.com>.
Well, I'm perfectly happy if I can do "per directory".
With best regards
Tomas Larsson
Verus amicus est tamquam alter idem
All messages originating from me are scanned with the latest updates of
Norton Antivirus 2K3.
-----Ursprungligt meddelande-----
Från: Leif W [mailto:warp-9.9@usa.net]
Skickat: den 5 september 2003 20:24
Till: users@httpd.apache.org
Ämne: Re: [users@httpd] OTHER KIND OF LIMITATION
I'd probably say no (as a wild guess). Think about the "granularity" or the
tightness of control you want. Using an OS like Linux or FreeBSD, you can
control bandwidth per IP, or even per protocol (HTTP, FTP, SSH, etc.). If
you can't do host-based bandwidth limiting, nor user, nor directory,
certainly you won't be able to do file "types", which is at the "tight" end
of the bandwidth shaping spectrum.
What I'd probably do is go read the Linux ADSL-Bandwidth-Management-HOWTO,
as it better explains how to do these things, and put your "heavy" files
(AVI, MP3, ZIP) on an FTP server ( http://proftpd.org/ ), and as described
in the HOWTO, set up packet queues with varying priorities, give highest
priority to interactive sessions like ssh, middle priority to the stuff on
the web server, and lowest priority to stuff on the FTP server.
This is the probably the simplest, quickest, and right now the best way to
achieve what you're both trying to do.
Leif
----- Original Message -----
From: "Tomas Larsson" <la...@telia.com>
To: <us...@httpd.apache.org>; "'Jefferson Midei'" <jm...@wmweb.com.br>
Sent: Friday, September 05, 2003 7:51 AM
Subject: SV: [users@httpd] OTHER KIND OF LIMITATION
To be honest I'm looking for something similar, --se my earlier post. I
haven't found any solution yet.
With best regards
Tomas Larsson
Verus amicus est tamquam alter idem
All messages originating from me are scanned with the latest updates of
Norton Antivirus 2K3.
-----Ursprungligt meddelande-----
Från: Jefferson Midei [mailto:jmidei@wmweb.com.br]
Skickat: den 5 september 2003 13:09
Till: users@httpd.apache.org
Ämne: [users@httpd] OTHER KIND OF LIMITATION
Dear Sirs,
Seems to me that to limit the bandwidth using apache 2.0.44 is not so
easy... So, I'm thinking about to limit my bandwidth using another way...
My WebServer (Apache 2.0.44, in a linux box kernel 2.4.21) is connected to a
256 kbps link. And studing my weblogs (using webalizer), I discovered that
part (50%) of the use of my bandwidth are users downloading files like .EXE,
.MP3, .AVI, .PDF, .DOC, .ZIP, etc... The other part of the use of my
bandwidth are users downloading "www" files, like .HTM*, .PHP*, .GIF, .PNG,
.JPG, etc...
I would like to limit the bandwidth use for the first files types (.EXE,
.PDF, etc...) just to 15% of my bandwidth... These files are downloaded
through the Apache WebServer, so, I would like to know if Apache will limit
that for me, and how...
Thanks,
JM...
-----Mensagem Original-----
De: "Leif W" <wa...@usa.net>
Para: <us...@httpd.apache.org>
Enviada em: quinta-feira, 4 de setembro de 2003 16:59
Assunto: Re: [users@httpd] LIMIT BANDWIDHT USING APACHE 2.0.44
> Note, this reply may be off topic.
>
> This is a good question I think, as other web servers may already have
some
> feature like this, so there should be some focus on systems running
> Apache to find equivalent solutions, in order to continue to compete.
>
> I've done some searching with Google for "Linux host based bandwith
> management shaping" (and variations), but it's hard to find anything
> specific.
>
> First, I found the Apache mod_bandwidth page (
> http://www.cohprog.com/v3/bandwidth/intro-en.html ), but the latest
release
> was 2003-01-12, and there's no mention of Apache 1.3.x or 2.0.x
> anywhere
in
> the sparse documentation, so I am leery of this seemingly stale
> software project.
>
> The only relelvent stuff I found was the ADSL Bandwidth Management
> HOWTO (
> http://www.linux.org/docs/ldp/howto/ADSL-Bandwidth-Management-HOWTO/ )
> and the HTB queue patch (included with kernel 2.4.20 and higher,
> http://luxik.cdi.cz/~devik/qos/htb/ ).
>
> Linux Advanced Routing & Traffic Control ( http://www.lartc.org/ ).
>
> Unfortunately the only bandwidth management I could see were IP-based.
>
> I did come across various commercial hardware products claiming to do
> host-based bandwidth management, but I did not spend much time looking
> at those, as I do not have such money to throw away, when there's
> bound to be some way to do it better, for free (eventually).
>
> Leif
>
> > ----- Original Message -----
> > From: "Tomas Larsson" <la...@telia.com>
> > To: <us...@httpd.apache.org>; "'Jefferson Midei'"
> > <jm...@wmweb.com.br>
> > Sent: Thursday, September 04, 2003 1:28 PM
> > Subject: SV: [users@httpd] LIMIT BANDWIDHT USING APACHE 2.0.44
> >
>
> > Hi Jefferson.
> > Have you got any solutions yet, I'm allso looking for the same,
> > haven't found anything yet, and no reply from the group either.
> >
> > With best regards
> >
> > Tomas Larsson
> >
> > Verus amicus est tamquam alter idem
> >
> >
> > All messages originating from me are scanned with the latest updates
> > of Norton Antivirus 2K3.
> >
> > > -----Ursprungligt meddelande-----
> > > Från: Jefferson Midei [mailto:jmidei@wmweb.com.br]
> > > Skickat: den 2 september 2003 19:34
> > > Till: users@httpd.apache.org
> > > Kopia: Luiz Eduardo
> > > Ämne: [users@httpd] LIMIT BANDWIDHT USING APACHE 2.0.44
> > > Prioritet: Hög
> > >
> > >
> > > Dear Sirs,
> > >
> > > My name is Jefferson Midei, and I'm in Brasil.
> > >
> > > I'm using a Linux Server, Conectiva (RedHat) 9.0, kernel 2.4.21,
> > > and WebServer Apache 2.0.44.
> > >
> > > I have about 150 virtual domains in my Apache Server, and I'm
> > > using a "namebased" configuration (sharing one IP)...
> > >
> > > I need to limit the usage of my bandwidth per virtual domain, and
> > > I
> don't
> > > know how to do that, or what I need to do that...
> > >
> > > I looked for "limit bandwidth" in the hystory of this maillist,
> > > but I
> just
> > > found solutions for Apache 1.3 (mod_bandwidth)...
> > >
> > > Please, help me...
> > >
> > > Thanks,
> > >
> > > Jefferson Midei
> > > jmidei@wmweb.com.br
> > >
>
>
>
> ---------------------------------------------------------------------
> 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
> " from the digest: users-digest-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
" from the digest: users-digest-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
" from the digest: users-digest-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
" from the digest: users-digest-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
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] OTHER KIND OF LIMITATION
Posted by Leif W <wa...@usa.net>.
I'd probably say no (as a wild guess). Think about the "granularity" or the
tightness of control you want. Using an OS like Linux or FreeBSD, you can
control bandwidth per IP, or even per protocol (HTTP, FTP, SSH, etc.). If
you can't do host-based bandwidth limiting, nor user, nor directory,
certainly you won't be able to do file "types", which is at the "tight" end
of the bandwidth shaping spectrum.
What I'd probably do is go read the Linux ADSL-Bandwidth-Management-HOWTO,
as it better explains how to do these things, and put your "heavy" files
(AVI, MP3, ZIP) on an FTP server ( http://proftpd.org/ ), and as described
in the HOWTO, set up packet queues with varying priorities, give highest
priority to interactive sessions like ssh, middle priority to the stuff on
the web server, and lowest priority to stuff on the FTP server.
This is the probably the simplest, quickest, and right now the best way to
achieve what you're both trying to do.
Leif
----- Original Message -----
From: "Tomas Larsson" <la...@telia.com>
To: <us...@httpd.apache.org>; "'Jefferson Midei'" <jm...@wmweb.com.br>
Sent: Friday, September 05, 2003 7:51 AM
Subject: SV: [users@httpd] OTHER KIND OF LIMITATION
To be honest I'm looking for something similar, --se my earlier post.
I haven't found any solution yet.
With best regards
Tomas Larsson
Verus amicus est tamquam alter idem
All messages originating from me are scanned with the latest updates of
Norton Antivirus 2K3.
-----Ursprungligt meddelande-----
Från: Jefferson Midei [mailto:jmidei@wmweb.com.br]
Skickat: den 5 september 2003 13:09
Till: users@httpd.apache.org
Ämne: [users@httpd] OTHER KIND OF LIMITATION
Dear Sirs,
Seems to me that to limit the bandwidth using apache 2.0.44 is not so
easy... So, I'm thinking about to limit my bandwidth using another way...
My WebServer (Apache 2.0.44, in a linux box kernel 2.4.21) is connected to a
256 kbps link. And studing my weblogs (using webalizer), I discovered that
part (50%) of the use of my bandwidth are users downloading files like .EXE,
.MP3, .AVI, .PDF, .DOC, .ZIP, etc... The other part of the use of my
bandwidth are users downloading "www" files, like .HTM*, .PHP*, .GIF, .PNG,
.JPG, etc...
I would like to limit the bandwidth use for the first files types (.EXE,
.PDF, etc...) just to 15% of my bandwidth... These files are downloaded
through the Apache WebServer, so, I would like to know if Apache will limit
that for me, and how...
Thanks,
JM...
-----Mensagem Original-----
De: "Leif W" <wa...@usa.net>
Para: <us...@httpd.apache.org>
Enviada em: quinta-feira, 4 de setembro de 2003 16:59
Assunto: Re: [users@httpd] LIMIT BANDWIDHT USING APACHE 2.0.44
> Note, this reply may be off topic.
>
> This is a good question I think, as other web servers may already have
some
> feature like this, so there should be some focus on systems running
> Apache to find equivalent solutions, in order to continue to compete.
>
> I've done some searching with Google for "Linux host based bandwith
> management shaping" (and variations), but it's hard to find anything
> specific.
>
> First, I found the Apache mod_bandwidth page (
> http://www.cohprog.com/v3/bandwidth/intro-en.html ), but the latest
release
> was 2003-01-12, and there's no mention of Apache 1.3.x or 2.0.x
> anywhere
in
> the sparse documentation, so I am leery of this seemingly stale
> software project.
>
> The only relelvent stuff I found was the ADSL Bandwidth Management
> HOWTO (
> http://www.linux.org/docs/ldp/howto/ADSL-Bandwidth-Management-HOWTO/ )
> and the HTB queue patch (included with kernel 2.4.20 and higher,
> http://luxik.cdi.cz/~devik/qos/htb/ ).
>
> Linux Advanced Routing & Traffic Control ( http://www.lartc.org/ ).
>
> Unfortunately the only bandwidth management I could see were IP-based.
>
> I did come across various commercial hardware products claiming to do
> host-based bandwidth management, but I did not spend much time looking
> at those, as I do not have such money to throw away, when there's
> bound to be some way to do it better, for free (eventually).
>
> Leif
>
> > ----- Original Message -----
> > From: "Tomas Larsson" <la...@telia.com>
> > To: <us...@httpd.apache.org>; "'Jefferson Midei'"
> > <jm...@wmweb.com.br>
> > Sent: Thursday, September 04, 2003 1:28 PM
> > Subject: SV: [users@httpd] LIMIT BANDWIDHT USING APACHE 2.0.44
> >
>
> > Hi Jefferson.
> > Have you got any solutions yet, I'm allso looking for the same,
> > haven't found anything yet, and no reply from the group either.
> >
> > With best regards
> >
> > Tomas Larsson
> >
> > Verus amicus est tamquam alter idem
> >
> >
> > All messages originating from me are scanned with the latest updates
> > of Norton Antivirus 2K3.
> >
> > > -----Ursprungligt meddelande-----
> > > Från: Jefferson Midei [mailto:jmidei@wmweb.com.br]
> > > Skickat: den 2 september 2003 19:34
> > > Till: users@httpd.apache.org
> > > Kopia: Luiz Eduardo
> > > Ämne: [users@httpd] LIMIT BANDWIDHT USING APACHE 2.0.44
> > > Prioritet: Hög
> > >
> > >
> > > Dear Sirs,
> > >
> > > My name is Jefferson Midei, and I'm in Brasil.
> > >
> > > I'm using a Linux Server, Conectiva (RedHat) 9.0, kernel 2.4.21,
> > > and WebServer Apache 2.0.44.
> > >
> > > I have about 150 virtual domains in my Apache Server, and I'm
> > > using a "namebased" configuration (sharing one IP)...
> > >
> > > I need to limit the usage of my bandwidth per virtual domain, and
> > > I
> don't
> > > know how to do that, or what I need to do that...
> > >
> > > I looked for "limit bandwidth" in the hystory of this maillist,
> > > but I
> just
> > > found solutions for Apache 1.3 (mod_bandwidth)...
> > >
> > > Please, help me...
> > >
> > > Thanks,
> > >
> > > Jefferson Midei
> > > jmidei@wmweb.com.br
> > >
>
>
>
> ---------------------------------------------------------------------
> 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
> " from the digest: users-digest-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
" from the digest: users-digest-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
" from the digest: users-digest-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
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] JUST DENY SOME FILE TYPES
Posted by "Tom Ray [Lists]" <li...@blazestudios.com>.
While that is very sound advice, it's not an absolute solution. It could
be very possible he has other users using this webserver and he may not
have control of what they put up. The best answer is (mine is setup for
multiple extension blocks):
<FilesMatch "\.(exe|log|bak)$">
order deny,allow
deny from all
</FilesMatch>
Hope that helps.
Aaron Morris wrote:
>
>
> Jefferson Midei wrote:
>
>> Dear Friends,
>>
>> Seems to me that is very difficult to limit the use of my bandwidth
>> using
>> Apache... So, I decided to DENY the download of some file types by
>> Apache...
>>
>> I would like to deny ALL download of .EXE on my Apache WebServer...
>>
>> How can I do this?
>>
>> Bye,
>>
>> JM...
>
>
> Do not put any EXEs under your document root or anywhere that is
> accessible to the web server.
>
---------------------------------------------------------------------
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
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] JUST DENY SOME FILE TYPES
Posted by Aaron Morris <aa...@mindspring.com>.
Jefferson Midei wrote:
> Dear Friends,
>
> Seems to me that is very difficult to limit the use of my bandwidth using
> Apache... So, I decided to DENY the download of some file types by Apache...
>
> I would like to deny ALL download of .EXE on my Apache WebServer...
>
> How can I do this?
>
> Bye,
>
> JM...
Do not put any EXEs under your document root or anywhere that is
accessible to the web server.
--
Aaron W Morris <aa...@mindspring.com> (decep)
---------------------------------------------------------------------
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
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] JUST DENY SOME FILE TYPES
Posted by Leif W <wa...@usa.net>.
> ----- Original Message -----
> From: "Jefferson Midei" <jm...@wmweb.com.br>
> To: <us...@httpd.apache.org>
> Sent: Saturday, September 06, 2003 1:31 PM
> Subject: [users@httpd] JUST DENY SOME FILE TYPES
>
> Dear Friends,
>
> Seems to me that is very difficult to limit the use of my bandwidth using
> Apache... So, I decided to DENY the download of some file types by
Apache...
>
> I would like to deny ALL download of .EXE on my Apache WebServer...
>
> How can I do this?
I don't know if this is the /best/ way, but one possibility that pops into
mind is the Files directive which prevents the download of .ht* files
(namely .htaccess and .htpasswd). They won't show up in index listings, and
will be given a Forbidden error page if they try to get it. The only
downside I can see is that they can still find out if a file exists on your
server, and if they discover a way to circumvent that, they know right where
to look for the .exe.
<Files ~ "\.exe$">
Order allow,deny
Deny from all
</Files>
Another thought that comes to mind is to remove all exe files or move them
elsewhere.
rm -iv `find /path/to/web/ -name "*.[eE][xX][eE]"`
mv -iv `find /path/to/web/ -name "*.[eE][xX][eE]"` /some/other/place
Leif
>
> Bye,
>
> JM...
> -----Mensagem Original-----
> De: "Tomas Larsson" <la...@telia.com>
> Para: <us...@httpd.apache.org>; "'Jefferson Midei'" <jm...@wmweb.com.br>
> Enviada em: sexta-feira, 5 de setembro de 2003 08:51
> Assunto: SV: [users@httpd] OTHER KIND OF LIMITATION
>
>
> To be honest I'm looking for something similar, --se my earlier post.
> I haven't found any solution yet.
>
> With best regards
>
> Tomas Larsson
>
> Verus amicus est tamquam alter idem
>
>
> All messages originating from me are scanned with the latest updates of
> Norton Antivirus 2K3.
>
> -----Ursprungligt meddelande-----
> Från: Jefferson Midei [mailto:jmidei@wmweb.com.br]
> Skickat: den 5 september 2003 13:09
> Till: users@httpd.apache.org
> Ämne: [users@httpd] OTHER KIND OF LIMITATION
>
>
> Dear Sirs,
>
> Seems to me that to limit the bandwidth using apache 2.0.44 is not so
> easy... So, I'm thinking about to limit my bandwidth using another way...
>
> My WebServer (Apache 2.0.44, in a linux box kernel 2.4.21) is connected to
a
> 256 kbps link. And studing my weblogs (using webalizer), I discovered that
> part (50%) of the use of my bandwidth are users downloading files like
.EXE,
> .MP3, .AVI, .PDF, .DOC, .ZIP, etc... The other part of the use of my
> bandwidth are users downloading "www" files, like .HTM*, .PHP*, .GIF,
.PNG,
> .JPG, etc...
>
> I would like to limit the bandwidth use for the first files types (.EXE,
> .PDF, etc...) just to 15% of my bandwidth... These files are downloaded
> through the Apache WebServer, so, I would like to know if Apache will
limit
> that for me, and how...
>
> Thanks,
>
> JM...
>
>
> -----Mensagem Original-----
> De: "Leif W" <wa...@usa.net>
> Para: <us...@httpd.apache.org>
> Enviada em: quinta-feira, 4 de setembro de 2003 16:59
> Assunto: Re: [users@httpd] LIMIT BANDWIDHT USING APACHE 2.0.44
>
>
> > Note, this reply may be off topic.
> >
> > This is a good question I think, as other web servers may already have
> some
> > feature like this, so there should be some focus on systems running
> > Apache to find equivalent solutions, in order to continue to compete.
> >
> > I've done some searching with Google for "Linux host based bandwith
> > management shaping" (and variations), but it's hard to find anything
> > specific.
> >
> > First, I found the Apache mod_bandwidth page (
> > http://www.cohprog.com/v3/bandwidth/intro-en.html ), but the latest
> release
> > was 2003-01-12, and there's no mention of Apache 1.3.x or 2.0.x
> > anywhere
> in
> > the sparse documentation, so I am leery of this seemingly stale
> > software project.
> >
> > The only relelvent stuff I found was the ADSL Bandwidth Management
> > HOWTO (
> > http://www.linux.org/docs/ldp/howto/ADSL-Bandwidth-Management-HOWTO/ )
> > and the HTB queue patch (included with kernel 2.4.20 and higher,
> > http://luxik.cdi.cz/~devik/qos/htb/ ).
> >
> > Linux Advanced Routing & Traffic Control ( http://www.lartc.org/ ).
> >
> > Unfortunately the only bandwidth management I could see were IP-based.
> >
> > I did come across various commercial hardware products claiming to do
> > host-based bandwidth management, but I did not spend much time looking
> > at those, as I do not have such money to throw away, when there's
> > bound to be some way to do it better, for free (eventually).
> >
> > Leif
> >
> > > ----- Original Message -----
> > > From: "Tomas Larsson" <la...@telia.com>
> > > To: <us...@httpd.apache.org>; "'Jefferson Midei'"
> > > <jm...@wmweb.com.br>
> > > Sent: Thursday, September 04, 2003 1:28 PM
> > > Subject: SV: [users@httpd] LIMIT BANDWIDHT USING APACHE 2.0.44
> > >
> >
> > > Hi Jefferson.
> > > Have you got any solutions yet, I'm allso looking for the same,
> > > haven't found anything yet, and no reply from the group either.
> > >
> > > With best regards
> > >
> > > Tomas Larsson
> > >
> > > Verus amicus est tamquam alter idem
> > >
> > >
> > > All messages originating from me are scanned with the latest updates
> > > of Norton Antivirus 2K3.
> > >
> > > > -----Ursprungligt meddelande-----
> > > > Från: Jefferson Midei [mailto:jmidei@wmweb.com.br]
> > > > Skickat: den 2 september 2003 19:34
> > > > Till: users@httpd.apache.org
> > > > Kopia: Luiz Eduardo
> > > > Ämne: [users@httpd] LIMIT BANDWIDHT USING APACHE 2.0.44
> > > > Prioritet: Hög
> > > >
> > > >
> > > > Dear Sirs,
> > > >
> > > > My name is Jefferson Midei, and I'm in Brasil.
> > > >
> > > > I'm using a Linux Server, Conectiva (RedHat) 9.0, kernel 2.4.21,
> > > > and WebServer Apache 2.0.44.
> > > >
> > > > I have about 150 virtual domains in my Apache Server, and I'm
> > > > using a "namebased" configuration (sharing one IP)...
> > > >
> > > > I need to limit the usage of my bandwidth per virtual domain, and
> > > > I
> > don't
> > > > know how to do that, or what I need to do that...
> > > >
> > > > I looked for "limit bandwidth" in the hystory of this maillist,
> > > > but I
> > just
> > > > found solutions for Apache 1.3 (mod_bandwidth)...
> > > >
> > > > Please, help me...
> > > >
> > > > Thanks,
> > > >
> > > > Jefferson Midei
> > > > jmidei@wmweb.com.br
> > > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
> > " from the digest: users-digest-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
> " from the digest: users-digest-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
> " from the digest: users-digest-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
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] JUST DENY SOME FILE TYPES
Posted by Rich Bowen <rb...@rcbowen.com>.
On Sat, 6 Sep 2003, Jefferson Midei wrote:
> Dear Friends,
>
> Seems to me that is very difficult to limit the use of my bandwidth using
> Apache... So, I decided to DENY the download of some file types by Apache...
The modules mod_bandwidth and mod_throttle address this problem from
different perspectives.
> I would like to deny ALL download of .EXE on my Apache WebServer...
>
> How can I do this?
<FilesMatch \.exe$>
Order deny,allow
Deny from all
</FilesMatch>
--
Rich Bowen - rbowen@rcbowen.com
As we trace our own few circles around the sun
We get it backwards and our seven years go by like one
Dog Years (Rush - Test for Echo - 1999)
---------------------------------------------------------------------
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
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] JUST DENY SOME FILE TYPES
Posted by Jefferson Midei <jm...@wmweb.com.br>.
Dear Friends,
Seems to me that is very difficult to limit the use of my bandwidth using
Apache... So, I decided to DENY the download of some file types by Apache...
I would like to deny ALL download of .EXE on my Apache WebServer...
How can I do this?
Bye,
JM...
-----Mensagem Original-----
De: "Tomas Larsson" <la...@telia.com>
Para: <us...@httpd.apache.org>; "'Jefferson Midei'" <jm...@wmweb.com.br>
Enviada em: sexta-feira, 5 de setembro de 2003 08:51
Assunto: SV: [users@httpd] OTHER KIND OF LIMITATION
To be honest I'm looking for something similar, --se my earlier post.
I haven't found any solution yet.
With best regards
Tomas Larsson
Verus amicus est tamquam alter idem
All messages originating from me are scanned with the latest updates of
Norton Antivirus 2K3.
-----Ursprungligt meddelande-----
Från: Jefferson Midei [mailto:jmidei@wmweb.com.br]
Skickat: den 5 september 2003 13:09
Till: users@httpd.apache.org
Ämne: [users@httpd] OTHER KIND OF LIMITATION
Dear Sirs,
Seems to me that to limit the bandwidth using apache 2.0.44 is not so
easy... So, I'm thinking about to limit my bandwidth using another way...
My WebServer (Apache 2.0.44, in a linux box kernel 2.4.21) is connected to a
256 kbps link. And studing my weblogs (using webalizer), I discovered that
part (50%) of the use of my bandwidth are users downloading files like .EXE,
.MP3, .AVI, .PDF, .DOC, .ZIP, etc... The other part of the use of my
bandwidth are users downloading "www" files, like .HTM*, .PHP*, .GIF, .PNG,
.JPG, etc...
I would like to limit the bandwidth use for the first files types (.EXE,
.PDF, etc...) just to 15% of my bandwidth... These files are downloaded
through the Apache WebServer, so, I would like to know if Apache will limit
that for me, and how...
Thanks,
JM...
-----Mensagem Original-----
De: "Leif W" <wa...@usa.net>
Para: <us...@httpd.apache.org>
Enviada em: quinta-feira, 4 de setembro de 2003 16:59
Assunto: Re: [users@httpd] LIMIT BANDWIDHT USING APACHE 2.0.44
> Note, this reply may be off topic.
>
> This is a good question I think, as other web servers may already have
some
> feature like this, so there should be some focus on systems running
> Apache to find equivalent solutions, in order to continue to compete.
>
> I've done some searching with Google for "Linux host based bandwith
> management shaping" (and variations), but it's hard to find anything
> specific.
>
> First, I found the Apache mod_bandwidth page (
> http://www.cohprog.com/v3/bandwidth/intro-en.html ), but the latest
release
> was 2003-01-12, and there's no mention of Apache 1.3.x or 2.0.x
> anywhere
in
> the sparse documentation, so I am leery of this seemingly stale
> software project.
>
> The only relelvent stuff I found was the ADSL Bandwidth Management
> HOWTO (
> http://www.linux.org/docs/ldp/howto/ADSL-Bandwidth-Management-HOWTO/ )
> and the HTB queue patch (included with kernel 2.4.20 and higher,
> http://luxik.cdi.cz/~devik/qos/htb/ ).
>
> Linux Advanced Routing & Traffic Control ( http://www.lartc.org/ ).
>
> Unfortunately the only bandwidth management I could see were IP-based.
>
> I did come across various commercial hardware products claiming to do
> host-based bandwidth management, but I did not spend much time looking
> at those, as I do not have such money to throw away, when there's
> bound to be some way to do it better, for free (eventually).
>
> Leif
>
> > ----- Original Message -----
> > From: "Tomas Larsson" <la...@telia.com>
> > To: <us...@httpd.apache.org>; "'Jefferson Midei'"
> > <jm...@wmweb.com.br>
> > Sent: Thursday, September 04, 2003 1:28 PM
> > Subject: SV: [users@httpd] LIMIT BANDWIDHT USING APACHE 2.0.44
> >
>
> > Hi Jefferson.
> > Have you got any solutions yet, I'm allso looking for the same,
> > haven't found anything yet, and no reply from the group either.
> >
> > With best regards
> >
> > Tomas Larsson
> >
> > Verus amicus est tamquam alter idem
> >
> >
> > All messages originating from me are scanned with the latest updates
> > of Norton Antivirus 2K3.
> >
> > > -----Ursprungligt meddelande-----
> > > Från: Jefferson Midei [mailto:jmidei@wmweb.com.br]
> > > Skickat: den 2 september 2003 19:34
> > > Till: users@httpd.apache.org
> > > Kopia: Luiz Eduardo
> > > Ämne: [users@httpd] LIMIT BANDWIDHT USING APACHE 2.0.44
> > > Prioritet: Hög
> > >
> > >
> > > Dear Sirs,
> > >
> > > My name is Jefferson Midei, and I'm in Brasil.
> > >
> > > I'm using a Linux Server, Conectiva (RedHat) 9.0, kernel 2.4.21,
> > > and WebServer Apache 2.0.44.
> > >
> > > I have about 150 virtual domains in my Apache Server, and I'm
> > > using a "namebased" configuration (sharing one IP)...
> > >
> > > I need to limit the usage of my bandwidth per virtual domain, and
> > > I
> don't
> > > know how to do that, or what I need to do that...
> > >
> > > I looked for "limit bandwidth" in the hystory of this maillist,
> > > but I
> just
> > > found solutions for Apache 1.3 (mod_bandwidth)...
> > >
> > > Please, help me...
> > >
> > > Thanks,
> > >
> > > Jefferson Midei
> > > jmidei@wmweb.com.br
> > >
>
>
>
> ---------------------------------------------------------------------
> 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
> " from the digest: users-digest-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
" from the digest: users-digest-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
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
SV: [users@httpd] OTHER KIND OF LIMITATION
Posted by Tomas Larsson <la...@telia.com>.
To be honest I'm looking for something similar, --se my earlier post.
I haven't found any solution yet.
With best regards
Tomas Larsson
Verus amicus est tamquam alter idem
All messages originating from me are scanned with the latest updates of
Norton Antivirus 2K3.
-----Ursprungligt meddelande-----
Från: Jefferson Midei [mailto:jmidei@wmweb.com.br]
Skickat: den 5 september 2003 13:09
Till: users@httpd.apache.org
Ämne: [users@httpd] OTHER KIND OF LIMITATION
Dear Sirs,
Seems to me that to limit the bandwidth using apache 2.0.44 is not so
easy... So, I'm thinking about to limit my bandwidth using another way...
My WebServer (Apache 2.0.44, in a linux box kernel 2.4.21) is connected to a
256 kbps link. And studing my weblogs (using webalizer), I discovered that
part (50%) of the use of my bandwidth are users downloading files like .EXE,
.MP3, .AVI, .PDF, .DOC, .ZIP, etc... The other part of the use of my
bandwidth are users downloading "www" files, like .HTM*, .PHP*, .GIF, .PNG,
.JPG, etc...
I would like to limit the bandwidth use for the first files types (.EXE,
.PDF, etc...) just to 15% of my bandwidth... These files are downloaded
through the Apache WebServer, so, I would like to know if Apache will limit
that for me, and how...
Thanks,
JM...
-----Mensagem Original-----
De: "Leif W" <wa...@usa.net>
Para: <us...@httpd.apache.org>
Enviada em: quinta-feira, 4 de setembro de 2003 16:59
Assunto: Re: [users@httpd] LIMIT BANDWIDHT USING APACHE 2.0.44
> Note, this reply may be off topic.
>
> This is a good question I think, as other web servers may already have
some
> feature like this, so there should be some focus on systems running
> Apache to find equivalent solutions, in order to continue to compete.
>
> I've done some searching with Google for "Linux host based bandwith
> management shaping" (and variations), but it's hard to find anything
> specific.
>
> First, I found the Apache mod_bandwidth page (
> http://www.cohprog.com/v3/bandwidth/intro-en.html ), but the latest
release
> was 2003-01-12, and there's no mention of Apache 1.3.x or 2.0.x
> anywhere
in
> the sparse documentation, so I am leery of this seemingly stale
> software project.
>
> The only relelvent stuff I found was the ADSL Bandwidth Management
> HOWTO (
> http://www.linux.org/docs/ldp/howto/ADSL-Bandwidth-Management-HOWTO/ )
> and the HTB queue patch (included with kernel 2.4.20 and higher,
> http://luxik.cdi.cz/~devik/qos/htb/ ).
>
> Linux Advanced Routing & Traffic Control ( http://www.lartc.org/ ).
>
> Unfortunately the only bandwidth management I could see were IP-based.
>
> I did come across various commercial hardware products claiming to do
> host-based bandwidth management, but I did not spend much time looking
> at those, as I do not have such money to throw away, when there's
> bound to be some way to do it better, for free (eventually).
>
> Leif
>
> > ----- Original Message -----
> > From: "Tomas Larsson" <la...@telia.com>
> > To: <us...@httpd.apache.org>; "'Jefferson Midei'"
> > <jm...@wmweb.com.br>
> > Sent: Thursday, September 04, 2003 1:28 PM
> > Subject: SV: [users@httpd] LIMIT BANDWIDHT USING APACHE 2.0.44
> >
>
> > Hi Jefferson.
> > Have you got any solutions yet, I'm allso looking for the same,
> > haven't found anything yet, and no reply from the group either.
> >
> > With best regards
> >
> > Tomas Larsson
> >
> > Verus amicus est tamquam alter idem
> >
> >
> > All messages originating from me are scanned with the latest updates
> > of Norton Antivirus 2K3.
> >
> > > -----Ursprungligt meddelande-----
> > > Från: Jefferson Midei [mailto:jmidei@wmweb.com.br]
> > > Skickat: den 2 september 2003 19:34
> > > Till: users@httpd.apache.org
> > > Kopia: Luiz Eduardo
> > > Ämne: [users@httpd] LIMIT BANDWIDHT USING APACHE 2.0.44
> > > Prioritet: Hög
> > >
> > >
> > > Dear Sirs,
> > >
> > > My name is Jefferson Midei, and I'm in Brasil.
> > >
> > > I'm using a Linux Server, Conectiva (RedHat) 9.0, kernel 2.4.21,
> > > and WebServer Apache 2.0.44.
> > >
> > > I have about 150 virtual domains in my Apache Server, and I'm
> > > using a "namebased" configuration (sharing one IP)...
> > >
> > > I need to limit the usage of my bandwidth per virtual domain, and
> > > I
> don't
> > > know how to do that, or what I need to do that...
> > >
> > > I looked for "limit bandwidth" in the hystory of this maillist,
> > > but I
> just
> > > found solutions for Apache 1.3 (mod_bandwidth)...
> > >
> > > Please, help me...
> > >
> > > Thanks,
> > >
> > > Jefferson Midei
> > > jmidei@wmweb.com.br
> > >
>
>
>
> ---------------------------------------------------------------------
> 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
> " from the digest: users-digest-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
" from the digest: users-digest-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
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org