Post Reply  Post Thread 
how about a message when a site is disabled?
Author Message
psygarden Offline
Junior Member
*

psygarden
Junior Member
*


Posts: 84
Group: Registered
Joined: Jan 2008
Status: Offline
Reputation: 0
Post: #1
how about a message when a site is disabled?
I had to disable a site that exceeded it's bandwidth by 300% manually.

Is there a way to have these sites disabled automatically, and ofcourse, to have a nice friendly error message appear instead of a 404 error ?

greetings,
Rik

It's hard to argue with the government. Remember, they run the Bureau of Alcohol, Tobacco and Firearms, so they must know a thing or two about satisfying women.
02-18-2008 03:45 AM
Visit this user's website Find all posts by this user Quote this message in a reply
gOOvER Offline
Documentation Team
***
Docu Team

gOOvER
Documentation Team
***
Docu Team


Posts: 1,619
Group: Docu Team
Joined: Jul 2007
Status: Offline
Reputation: 13
Post: #2
RE: how about a message when a site is disabled?
Why you don't use mod_cband to limit the Bandwidth????

Server : Rootserver
OS : Debian 4.0 Etch 64bit
ispCP Version : 1.0.0 r1363 - 30.09.08 (NightlyBuild)
Activated : AWStats dynamic
Mods : update via NightlyUpdateScript
02-18-2008 04:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
Moderator
*****

joximu
Moderator
*****


Posts: 3,608
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 47
Post: #3
RE: how about a message when a site is disabled?
Have a look at the examples of mod_cband
/usr/share/doc/libapache2-mod-cband/examples/

eg:
CBandUserExceededURL http://myserver.com/exeeded.html

2008-08-05 ispCP RC6 released!!!
02-18-2008 04:26 AM
Visit this user's website Find all posts by this user Quote this message in a reply
psygarden Offline
Junior Member
*

psygarden
Junior Member
*


Posts: 84
Group: Registered
Joined: Jan 2008
Status: Offline
Reputation: 0
Post: #4
RE: how about a message when a site is disabled?
I set a bandwidth limit in the admin panel, but it seems to be just an indication, nothing really happens when someone crosses it ?

I assume to need to configure this manually?

It's hard to argue with the government. Remember, they run the Bureau of Alcohol, Tobacco and Firearms, so they must know a thing or two about satisfying women.
02-18-2008 06:47 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
Moderator
*****

joximu
Moderator
*****


Posts: 3,608
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 47
Post: #5
RE: how about a message when a site is disabled?
Did you enable the module cband?

a2enmod cband

and apache reload...

/J

PS: for me it works well...

2008-08-05 ispCP RC6 released!!!

This post was last modified: 02-18-2008 07:23 AM by joximu.

02-18-2008 07:23 AM
Visit this user's website Find all posts by this user Quote this message in a reply
gOOvER Offline
Documentation Team
***
Docu Team

gOOvER
Documentation Team
***
Docu Team


Posts: 1,619
Group: Docu Team
Joined: Jul 2007
Status: Offline
Reputation: 13
Post: #6
RE: how about a message when a site is disabled?
There is no Option in the Panel. You have to set it up by hand Smile

Server : Rootserver
OS : Debian 4.0 Etch 64bit
ispCP Version : 1.0.0 r1363 - 30.09.08 (NightlyBuild)
Activated : AWStats dynamic
Mods : update via NightlyUpdateScript
02-18-2008 01:12 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****

BeNe
Moderator
*****


Posts: 2,941
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 41
Post: #7
RE: how about a message when a site is disabled?
There is also something in the old wiki --> http://www.isp-control.net/ispcp/wiki/howto_mod_cband

Greez BeNe

[Image: ispcpsw.png]
Ein Betriebssystem ist immer nur so gut und sicher wie der Administrator der es verwaltet.
Wie gut der Administrator jedoch seine Fähigkeiten ausspielen kann, legt das Betriebssystem fest.
-> Linux rulZ!
02-18-2008 04:57 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this thread |

Forum Jump:

| All rights reserved : isp-control.net |