Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Oct 2002 09:38:13 +0400 (MSD)
From:      Konstantin M Volevatch <cox@rosnet.ru>
To:        Jez Hancock <jez.hancock@munk.nu>
Cc:        FreeBSD ISP List <freebsd-isp@FreeBSD.ORG>
Subject:   Re: Apache vhost directive problem
Message-ID:  <20021003093609.I96307-100000@cox.rosnet.ru>
In-Reply-To: <20021003043348.GA55962@users.munk.nu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 3 Oct 2002, Jez Hancock wrote:

> Date: Thu, 3 Oct 2002 04:33:48 +0000
> From: Jez Hancock <jez.hancock@munk.nu>
> To: FreeBSD ISP List <freebsd-isp@FreeBSD.ORG>
> Subject: Apache vhost directive problem
>
> Hi folks,
>
> I have a problem with my apache httpd vhost configuration.
>
> My vhost entries for numerous users look like this:
>
> <VirtualHost *>
>     ServerName eggshell.munk.nu
>     ServerAdmin support@munk.nu
>     DocumentRoot /home/eggshell/web
>     ErrorLog /home/eggshell/logs/httpd-error.log
>     CustomLog /home/eggshell/logs/httpd-access.log combined
> </VirtualHost>
>
> and the problem I'm having is that if a user removes either their logs
> or web dir, the server will not (re)start correctly since the vhost
> configuration is broken after such changes.

Use 'apachectl configtest' before restart
Also, you may set 'sunlnk' flag on 'web' subdir

>
> How can I ensure that the vhost configuration does not become 'broken'
> after a user makes such a change?
>
> Many thanks in advance,
>
> Jez
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-isp" in the body of the message
>

-- 
Konstantin M Volevatch <cox@rosnet.ru>
RosNet JSC, Moscow
[095] 755 85 94 [local:4341]


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021003093609.I96307-100000>