[GLLUG] Have multiple domains / hosts on one server
Charles Ulrich
charles at idealso.com
Fri May 5 10:13:31 EDT 2006
Marshal Newrock wrote:
> You're looking for "name-based virtual hosts". Since HTTP includes the
> domain you're requesting info from, you can assign multiple domains to the
> same IP, and the web server can tell one from the other. If you're using
> apache, there may be examples in the config. If not, there's examples on
> the apache page.
I believe Caleb is using Gentoo... In Gentoo, when you install Apache,
the default configuration is set up to use virtual hosts, even when you
just have one site to host. To create a new virtual host, simply copy
/etc/apache2/vhosts.d/00_default_vhost.conf to something like
10_mysite.com_vhost.conf, edit as necessary, and you're good to go.
--
Charles Ulrich
Ideal Solution, LLC -- http://www.idealso.com
More information about the linux-user
mailing list