• 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: Private branding ..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: Private branding ..


  • Subject: re: Private branding ..
  • From: Steven McDowall <email@hidden>
  • Date: Sat, 12 Mar 2005 16:16:42 -0600


There is certainly an easier way (if you're using Apache, results will vary for others) to handle the situation..


We do a very similar thing in our app.

First, we use an apache wildcard entry to handle the domains :

        ServerAlias *.foo.domain.com

We then combine this with a re-write ruleset :

RewriteEngine On
RewriteLog /tmp/rewrites.log
RewriteLogLevel 9
RewriteCond %{HTTP_HOST} ^([^\.]+).foo.domain.com [nocase]
RewriteRule ^/?$ https://foo.domain.com/cgi-bin/WebObjects/Application.
woa?domain=%1 [qsappend,last]


Now in the default page (which for us is a login page) we check to see if the domain is set and if so, grab its value and stash in the session.

We then do a lookup in the DB for the account record that has the domain value associated with it -- and from the account record grab things like locale() preferences, branding preferences, etc. (and either stash the EO in the session or at least the values so we don't have to look it up every page that renders).

We then employ a nice generic page wrapper (i.e. page template) for things like logo icons, css resource name, etc.

Hope this helps..

_______________________________________________
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


  • Prev by Date: Duplicate Relationship name (EoModeler)
  • Next by Date: Re: Postgresql For Mac Project on SourceForge
  • Previous by thread: Duplicate Relationship name (EoModeler)
  • Next by thread: Text encoding issue using string file
  • Index(es):
    • Date
    • Thread