On 24 avr. 06, at 14:22, Zak Burke wrote:

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.


Zak :

sorry, but this can be completly automatic. Don't forget *.sourceforge.net projects : they don't configure the webserver and restart it for each new project...

You can simple add in your bind configuration :

*.mysubdomain IN A 1.1.1.1(replace with your IP, or a CNAME)

And then, read this :

http://httpd.apache.org/docs/2.0/vhosts/mass.html
(for apache2)

http://httpd.apache.org/docs/1.3/vhosts/mass.html
(for apache1.3)

I hope I understood right everybody :)

Philippe

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to