Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

name based virtual hosts for multiple domains?

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


netrek at gmail

Nov 25, 2009, 1:35 PM

Post #1 of 3 (511 views)
Permalink
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 [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


rnodal at gmail

Nov 25, 2009, 1:39 PM

Post #2 of 3 (472 views)
Permalink
Re: name based virtual hosts for multiple domains? [In reply to]

On Wed, Nov 25, 2009 at 4:35 PM, Zachary Uram <netrek [at] gmail> 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 [at] httpd
> " from the digest: users-digest-unsubscribe [at] httpd
> For additional commands, e-mail: users-help [at] httpd
>
>
I really like the documentation provided here:
http://httpd.apache.org/docs/2.2/vhosts/examples.html
I hope it helps.

-r


imedina at grosshat

Nov 25, 2009, 3:33 PM

Post #3 of 3 (473 views)
Permalink
Re: name based virtual hosts for multiple domains? [In reply to]

> 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Ʊ

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.