You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nick De Decker <ni...@i-vision.be> on 2002/04/12 01:53:27 UTC
Disable a virtualhost
Hello,
Is it possible to stop a virtualhost from serving pages without having to
restart apache or adjust the configfile ?
So can i tell a running apache to enable/disable the serving of a specific
virtualhost ?
Regards,
Nick De Decker
---------------------------------------------------------------------
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: Disable a virtualhost
Posted by Nick De Decker <ni...@i-vision.be>.
Ok thanks, just what i needed .
----- Original Message -----
From: "Owen Boyle" <ob...@bourse.ch>
To: <us...@httpd.apache.org>
Sent: Friday, April 12, 2002 9:48 AM
Subject: Re: Disable a virtualhost
> Nick De Decker wrote:
> >
> > Hello,
> >
> > Is it possible to stop a virtualhost from serving pages without having
to
> > restart apache or adjust the configfile ?
> > So can i tell a running apache to enable/disable the serving of a
specific
> > virtualhost ?
>
> Reloading the apache config doesn't necessarily mean restarting. You can
> send the apache process a SIGHUP with the "graceful" argument to
> apachectl, i.e.
>
> # /usr/local/apache/bin/apachectl graceful
>
> This will not cause any existing connections to fail or running CGIs to
> stop - no users will notice anything...
>
> Rgds,
>
> Owen Boyle.
>
> ---------------------------------------------------------------------
> 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: Disable a virtualhost
Posted by Owen Boyle <ob...@bourse.ch>.
Nick De Decker wrote:
>
> Hello,
>
> Is it possible to stop a virtualhost from serving pages without having to
> restart apache or adjust the configfile ?
> So can i tell a running apache to enable/disable the serving of a specific
> virtualhost ?
Reloading the apache config doesn't necessarily mean restarting. You can
send the apache process a SIGHUP with the "graceful" argument to
apachectl, i.e.
# /usr/local/apache/bin/apachectl graceful
This will not cause any existing connections to fail or running CGIs to
stop - no users will notice anything...
Rgds,
Owen Boyle.
---------------------------------------------------------------------
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: Disable a virtualhost
Posted by Ryan Thompson <ry...@sasknow.com>.
Nick De Decker wrote to users@httpd.apache.org:
> Hello,
>
> Is it possible to stop a virtualhost from serving pages without
> having to restart apache or adjust the configfile ?
> So can i tell a running apache to enable/disable the serving of a
> specific virtualhost ?
I don't think you can disable this at the Apache level without
altering the config and at least doing a graceful restart.
Someone else already suggested revoking DNS. That is successful to a
point, but takes awhile to propagate.
My favorite method is just to disable their web directory (and
cgi-bin, if they have their own). Assuming you're under UNIX/Linux:
cd /home/user
chmod 000 cgi-bin public_html # Revoke access
chown root:wheel cgi-bin public_html # Revoke ownership
If the user owns their home directory, they can still unlink
public_html and re-create it. You have some choices as to how you
prevent that. Either revoke access to their entire home directory, or
disable their login/ftp account, etc.
Hope this helps,
- Ryan
--
Ryan Thompson <ry...@sasknow.com>
Network Administrator, Accounts
SaskNow Technologies - http://www.sasknow.com
#106-380 3120 8th St E - Saskatoon, SK - S7H 0W2
Tel: 306-664-3600 Fax: 306-664-1161 Saskatoon
Toll-Free: 877-727-5669 (877-SASKNOW) North America
---------------------------------------------------------------------
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