• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Create a sub-domain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Create a sub-domain


  • Subject: Re: Create a sub-domain
  • From: Philippe Lafoucrière <email@hidden>
  • Date: Mon, 24 Apr 2006 14:58:36 +0200


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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Create a sub-domain (From: Colin Shreffler <email@hidden>)
 >Re: Create a sub-domain (From: Zak Burke <email@hidden>)

  • Prev by Date: Re: Create a sub-domain
  • Next by Date: Re: webobject framework
  • Previous by thread: Re: Create a sub-domain
  • Next by thread: webobject framework
  • Index(es):
    • Date
    • Thread