Re: [SLUG] Apache2 virtual hosts

From: Nicholas Finzer (nfinzer@gmail.com)
Date: Sat Jun 18 2005 - 13:58:44 EDT


Here is a slightly modified version of the relevant sections from one of my
servers at work. Hopefully this will help. Only the URLs have been changed a
bit.
 <VirtualHost example1.acomp.usf.edu:80 <http://example1.acomp.usf.edu:80>>
DocumentRoot /var/www/html
ServerName example1.acomp.usf.edu:80 <http://example1.acomp.usf.edu:80>
</VirtualHost>

<VirtualHost example2.acomp.usf.edu:80 <http://example2.acomp.usf.edu:80>>
DocumentRoot /var/www/html/example2/
ServerName example2.acomp.usf.edu:80 <http://example2.acomp.usf.edu:80>
</VirtualHost>
<VirtualHost example3.acomp.usf.edu:80 <http://example3.acomp.usf.edu:80>>
DocumentRoot /var/www/html/example3/
ServerName example3.acomp.usf.edu:80 <http://example3.acomp.usf.edu:80>
</VirtualHost>
 Make sure that your DNS servers for hamsbeer.com <http://hamsbeer.com> and
joedienterprises.com <http://joedienterprises.com> point to that server...

NF
 On 6/18/05, Joe Brandt <vzd1s11k@verizon.net> wrote:
>
> I have been attempting (unsuccessfully) to get
> Apache2 configured so that that :
> default serves up /var/www/html
> www.hamsbeer.com <http://www.hamsbeer.com> serves up /var/www/html/hams
> www.joedienterprises.com <http://www.joedienterprises.com> serves up
> /var/www/html/joedi
>
> Searching the docs on Name based Virtual Hosts
> (http://httpd.apache.org/docs-2.0/vhosts/name-based.html) was not much
> help as I did what I interpreted them to be saying and I can not get it
> to work. All I have managed to accomplish is get 1 site up regardless
> of name. I have made it functional again and copied the httpd.conf file
> for your viweing pleasure.
>
> All help will be appreciated
> Thank you in advance
>
> Joe Brandt S.S.T.G.I.T.
> (Struggling self taught geek in training)
>
>
>
> -----------------------------------------------------------------------
> This list is provided as an unmoderated internet service by Networked
> Knowledge Systems (NKS). Views and opinions expressed in messages
> posted are those of the author and do not necessarily reflect the
> official policy or position of NKS or any of its employees.
>

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:15:16 EDT