Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Sep 2005 20:45:37 -0700
From:      Vizion <vizion@vizion.occoxmail.com>
To:        freebsd-apache@freebsd.org
Cc:        users@httpd.apache.org, freebsd-questions@freebsd.org
Subject:   Re: [users@httpd] Virtual host config SOLVED
Message-ID:  <200509062045.37778.vizion@vizion.occoxmail.com>
In-Reply-To: <200509061609.25444.vizion@vizion.occoxmail.com>
References:  <20050906125950.fh0x80jdw0gow0k8@webmail.muly.dk> <200509061020.53479.vizion@vizion.occoxmail.com> <200509061609.25444.vizion@vizion.occoxmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 06 September 2005 16:09,  the author Vizion contributed to the=20
dialogue on-
 Re: [users@httpd] Virtual host config:=20

>On Tuesday 06 September 2005 10:20,  the author Vizion contributed to the
>dialogue on-
>
> [users@httpd] Virtual host config:
>>Hi
>>
>>My Apache2 runs on Unix (Freebsd) with
>>httpd.conf including
>>ServerRoot "/usr/local"
>>DocumentRoot "/usr/local/www/data"
>>
>>It is so long ago that I was working on apache that I have forgotten the
>>basics!
>>
>>I am adding a number of virtual hosts the files =A0located as
>>
>>/usr2/virtualhosts/vhostname1/
>>/usr2/virtualhosts/vhostname2/
>>etc
>>
>>I want to keep the existing website running under /usr/local/www/data as
>> well as the virtual hosts.
>>
>>I do not want to try the Virtual-Host Aliases until I have got my head
>> around the basics!
>>
>>I have set up a virtualhosts.conf file using an Include directory:
>>
>>Include etc/apache2/Includes/*.conf
>>
>><VirtualHost x.x.x.x>
>>=A0=A0=A0=A0=A0=A0=A0=A0DocumentRoot /usr2/virtualwebs/vhostname1
>>=A0=A0=A0=A0=A0=A0=A0=A0ServerName vhostname1.com
>>=A0=A0=A0=A0=A0=A0=A0=A0AcceptPathInfo On
>></VirtualHost>
>>
>>I am clearly not getting my set up/permissions right because I get
>>
>>You don't have permission to access / on this server.
>>
>>It seems =A0some needed directives are missing from the virtualhosts.conf
>> and/or httpd.conf files.
>>
>>Despite reading the documentation I do not get it!
>
>I have also tried using a link
>dns1# cd www
>dns1# ls -l
>total 14
>
>lrwxr-xr-x  1 root  wheel    18 Sep  6 14:20 virtualwebs ->
> /usr2/virtualwebs/
>
>with virtualhosts.conf carrying entries of:
>
><VirtualHost x.x.x.x>
>	DocumentRoot /www/virtualwebs/vhost1.com
>	ServerName vhost1.com
>	AcceptPathInfo On
></VirtualHost>
>and tried
><VirtualHost x.x.x.x>
>	DocumentRoot /virtualwebs/vhost1.com
>	ServerName vhost1.com
>	AcceptPathInfo On
></VirtualHost>
>when that did not work
>In either case I get
>Warning: DocumentRoot [/www/virtualwebs/vhost1.com] does not exist
>
>How can I get this right?

OK solved it - the manual I was using gave the impression that the=20
DocumentRoot was specified relative to the server root rather than=20
absolutely. Once I got over that the rest fell into place.

Thanks
david

=2D-=20
40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V Tauru=
s.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal afte=
r=20
completing engineroom refit.



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