You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Chris Meadors <cl...@hereintown.net> on 2003/01/17 22:08:40 UTC
Re: [users@httpd] disable virtual host
Jesse Guardiani wrote:
> Howdy List,
>
> I'm curious:
>
> How do you guys go about temporarily disabling a virtual host
> for of non-payment?
>
> I can't figure out a clean way to do it, and I'm not sure if
> I want to redirect the disabled host to my home website, or
> display an error message of some kind.
>
> I can't find anything on Google about this either.
I just have their DocumentRoot permissions set to 000. That gives a
nice "Forbidden" error when anyone tries to view their page.
--
Chris
---------------------------------------------------------------------
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] disable virtual host
Posted by Jesse Guardiani <je...@wingnet.net>.
Hey, is that "virtual host directory" thing a feature new
in 2.x, or was it available in 1.3 too?
I wouldn't mind taking the time to implement that on my own
server if it's available on httpd 1.3. I just don't want to
upgrade to 2.x yet, since the only thing I really like about
it is threading, and I run FreeBSD, so threading isn't an
option...
Thanks,
Jesse
On Friday 17 January 2003 17:06, Chris Meadors wrote:
> Jesse Guardiani wrote:
> > Hmm... Out of all the replies I've gotten, I think I like
> > this one the best. Why?
> >
> > It's scriptable.
>
> That's the reason I do it.
>
> > I'd love to actually redirect visitors of said un-paid site
> > to a pretty page explaining the situation, but in the end,
> > I want to click a button and have 600 users cut off in a
> > half second.
>
> You could create a custom Forbidden error doc that does what ever you want.
>
> > Granted, I COULD parse the virtual host file and insert a
> > redirect or something when a user hasn't paid, but it's so
> > much easier to just check and set directory permissions.
>
> On my new server I may go about it differently. My current machine is
> probably a lot like your's, one flat file for all the Virtual hosts.
> I've since discovered you can include a directory. I plan on placing a
> separate file for each Virtual host in an included directory. Then I
> can have these files modified by scripts when I add/delete an account,
> or just turn them off for non-payment, I can also have scripts that turn
> on and off available options for the hosting accounts.
>
> I don't plan on parsing the files, I'll just write a new one with the
> appropriate settings. I'll store the current settings in a separate
> file (or as comments at the start of the included file) in a format that
> is easier for me to parse in a shell script.
--
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v) 423-559-5145 (f)
http://www.wingnet.net
We are actively looking for companies that do a lot of long
distance faxing and want to cut their long distance bill by
up to 50%. Contact sales@onerateamerica.com for more info.
---------------------------------------------------------------------
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] disable virtual host
Posted by Chris Meadors <cl...@hereintown.net>.
Jesse Guardiani wrote:
> Hmm... Out of all the replies I've gotten, I think I like
> this one the best. Why?
>
> It's scriptable.
That's the reason I do it.
> I'd love to actually redirect visitors of said un-paid site
> to a pretty page explaining the situation, but in the end,
> I want to click a button and have 600 users cut off in a
> half second.
You could create a custom Forbidden error doc that does what ever you want.
> Granted, I COULD parse the virtual host file and insert a
> redirect or something when a user hasn't paid, but it's so
> much easier to just check and set directory permissions.
On my new server I may go about it differently. My current machine is
probably a lot like your's, one flat file for all the Virtual hosts.
I've since discovered you can include a directory. I plan on placing a
separate file for each Virtual host in an included directory. Then I
can have these files modified by scripts when I add/delete an account,
or just turn them off for non-payment, I can also have scripts that turn
on and off available options for the hosting accounts.
I don't plan on parsing the files, I'll just write a new one with the
appropriate settings. I'll store the current settings in a separate
file (or as comments at the start of the included file) in a format that
is easier for me to parse in a shell script.
--
Chris
---------------------------------------------------------------------
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] disable virtual host
Posted by Jesse Guardiani <je...@wingnet.net>.
Hmm... Out of all the replies I've gotten, I think I like
this one the best. Why?
It's scriptable.
I'd love to actually redirect visitors of said un-paid site
to a pretty page explaining the situation, but in the end,
I want to click a button and have 600 users cut off in a
half second.
Granted, I COULD parse the virtual host file and insert a
redirect or something when a user hasn't paid, but it's so
much easier to just check and set directory permissions.
Does anyone think I'm crazy?
Jesse
On Friday 17 January 2003 16:08, Chris Meadors wrote:
> Jesse Guardiani wrote:
> > Howdy List,
> >
> > I'm curious:
> >
> > How do you guys go about temporarily disabling a virtual host
> > for of non-payment?
> >
> > I can't figure out a clean way to do it, and I'm not sure if
> > I want to redirect the disabled host to my home website, or
> > display an error message of some kind.
> >
> > I can't find anything on Google about this either.
>
> I just have their DocumentRoot permissions set to 000. That gives a
> nice "Forbidden" error when anyone tries to view their page.
--
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v) 423-559-5145 (f)
http://www.wingnet.net
We are actively looking for companies that do a lot of long
distance faxing and want to cut their long distance bill by
up to 50%. Contact sales@onerateamerica.com for more info.
---------------------------------------------------------------------
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