You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Zachary Uram <ne...@gmail.com> on 2009/11/25 22:35:21 UTC
[users@httpd] name based virtual hosts for multiple domains?
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 <URL:http://httpd.apache.org/userslist.html> 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: [users@httpd] name based virtual hosts for multiple domains?
Posted by Iñigo Medina <im...@grosshat.com>.
> 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ñ
Re: [users@httpd] name based virtual hosts for multiple domains?
Posted by Roger <rn...@gmail.com>.
On Wed, Nov 25, 2009 at 4:35 PM, Zachary Uram <ne...@gmail.com> 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 <URL:http://httpd.apache.org/userslist.html> 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