name based virtual hosts for multiple domains?

name based virtual hosts for multiple domains?

am 25.11.2009 22:35:21 von Zach Uram

Hi,

I have a VPS running Debian and Apache 2.2 and I'd like to setup name
based virtual hosts in Apache for several domains and I will have
several subdomains for each domain. Is this possible? For example:

www.site1.org with subdomains blog.site1.org, wiki.site1.org

www.site2.org with subdomains blog.site2.org, wiki.site2.org

And if someone only types "site1.org" I want it to automatically
serve them the content that "www.site1.org" gets.

Any tips appreciated!

Zach

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: name based virtual hosts for multiple domains?

am 25.11.2009 22:39:52 von Roger

--0016e64ca2a646445d047938e78c
Content-Type: text/plain; charset=ISO-8859-1

On Wed, Nov 25, 2009 at 4:35 PM, Zachary Uram wrote:

> Hi,
>
> I have a VPS running Debian and Apache 2.2 and I'd like to setup name
> based virtual hosts in Apache for several domains and I will have
> several subdomains for each domain. Is this possible? For example:
>
> www.site1.org with subdomains blog.site1.org, wiki.site1.org
>
> www.site2.org with subdomains blog.site2.org, wiki.site2.org
>
> And if someone only types "site1.org" I want it to automatically
> serve them the content that "www.site1.org" gets.
>
> Any tips appreciated!
>
> Zach
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
I really like the documentation provided here:
http://httpd.apache.org/docs/2.2/vhosts/examples.html
I hope it helps.

-r

--0016e64ca2a646445d047938e78c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable



On Wed, Nov 25, 2009 at 4:35 PM, Zachary=
Uram <netrek@gmai=
l.com
>
wrote:
order-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; paddin=
g-left: 1ex;">

Hi,



I have a VPS running Debian and Apache 2.2 and I'd like to setup name r>
based virtual hosts in Apache for several domains and I will have

several subdomains for each domain. Is this possible? For example:



with s=
ubdomains blog.site1.or=
g
, wiki.site1.org a>



with s=
ubdomains
blog.site2.or=
g
, wiki.site2.org a>



And if someone only =A0types "
blank">site1.org" I want it to automatically

serve them the content that " =3D"_blank">www.site1.org" gets.



Any tips appreciated!



Zach



------------------------------------------------------------ ---------

The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g">users-unsubscribe@httpd.apache.org

=A0 " =A0 from the digest: @httpd.apache.org">users-digest-unsubscribe@httpd.apache.org

For additional commands, e-mail: org">users-help@httpd.apache.org




I really like the documentation provided here: ef=3D"http://httpd.apache.org/docs/2.2/vhosts/examples.html" >http://httpd.a=
pache.org/docs/2.2/vhosts/examples.html

I hope it helps.



-r




--0016e64ca2a646445d047938e78c--

Re: name based virtual hosts for multiple domains?

am 26.11.2009 00:33:39 von imedina

--8323329-718322451-1259192023=:2632
Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8BIT


> I have a VPS running Debian and Apache 2.2 and I'd like to setup name
> based virtual hosts in Apache for several domains and I will have
> several subdomains for each domain. Is this possible? For example:

Sure you can. Look at doc on apache.org and look at module vhost_alias
since it's usually used to achieve similar goals you want to reach.

iñ

--8323329-718322451-1259192023=:2632
Content-Type: text/plain; charset=us-ascii


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
--8323329-718322451-1259192023=:2632--