• 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: 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


  • Follow-Ups:
    • Re: Create a sub-domain
      • From: Philippe Lafoucrière <email@hidden>
References: 
 >Create a sub-domain (From: Colin Shreffler <email@hidden>)

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