Re: Create a sub-domain
Re: Create a sub-domain
- Subject: Re: Create a sub-domain
- From: Zak Burke <email@hidden>
- Date: Mon, 24 Apr 2006 08:22:50 -0400
Colin Shreffler wrote on 4/23/06 4:13 PM:
Does anyone know to dynamically create a sub-domain in apache from
within Web Objects?
If you really mean a sub-domain, you can't do that without updating your
DNS server and restarting Apache. If all you want is to create an alias
to an existing subdomain, e.g. you already have www.foo.com and you want
to create bar.foo.com, you have at least two options:
1. Edit Apache's config file and add a new virtual host directive, then
restart Apache. This isn't really a WO problem at all.
2. Direct all of Apache's traffic to a single domain and then hand off
control to different parts of your application based on the server_name
request header. A good place to do this is probably
DirectAction.performActionNamed, if not Application.dispatchRequest.
Good luck,
zak.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden