[users@httpd] Virtual host config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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  located 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>
        DocumentRoot /usr2/virtualwebs/vhostname1
        ServerName vhostname1.com
        AcceptPathInfo 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  some needed directives are missing from the virtualhosts.conf and/or 
httpd.conf files.

Despite reading the documentation I do not get it!

Can someone please help

thanks in advance

david


-- 
40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux