Tuesday, May 8, 2007

Re: [BLUG] Sub domains in Apache

So, the key here is that you cannot do an apachectl graceful?

You might be able to do this with mod_rewrite rules, but you'll need DNS
entries for each of your subdomains.

Weldon Sams wrote:
> Hey blug'ers, I have a question for you. Does anyone have experience
> setting up sub-domains in Apache? Here's what I would like to happen.
>
> Let's say with my domain wsams.org <http://wsams.org> I would like to
> have say 3 sub-domains -- say linux, gentoo and mac.
>
> I would like to have the setup where my home directory contains as many
> directories as I want, but as soon as I put the directory html inside
> one of those directories, that original directory becames a sub-domain.
>
> The idea sould be to have
>
> /home/wsams/linux/html --->

http://linux.wsams.org
> /home/wsams/gentoo/html --->

http://gentoo.wsams.org
> <http://gentoo.wsams.org>
> /home/wsams/mac/html --->

http://mac.wsams.org
>
> Also, the server should not have to be restarted. So say I create the
> directory
>
> /home/wsams/foobar/html
>
> I would have the sub-domain http://foobar.wsams.org
>
> Does anyone know how to set this up easily. I just can't figure out what
> to search for.
>
>
> --
> Weldon Sams
> wsams@indiana.edu <mailto:wsams@indiana.edu>


--
Joe Auty
NetMusician: web publishing software for musicians
http://www.netmusician.org
joe@netmusician.org
_______________________________________________
BLUG mailing list
BLUG@linuxfan.com
http://mailman.cs.indiana.edu/mailman/listinfo/blug

No comments: