My personal experience has been that this sort of thing is much easier to
manage from apache with mod_proxy and mod_rewrite, but YMMV. I've had fewer
headaches keeping my inner-apps as URL agnostic and ignorant as possible,
they only know about their paths, from the mount point on.. If it were me,
I'd use mod_proxy (or an nginx equiv) and perhaps some wsgi middleware so
that if the apps need to know more they can grab it off the wsgi env and at
least any URL specific code is bound up in one place only (the wsgi
middleware). Much easier when you change your mind, or add more, or have to
change how deployment works.

my two cents Canadian!
iain

On Thu, Jul 30, 2015 at 8:02 PM, Vincent Catalano <
[email protected]> wrote:

> Have you considered handling this using Nginx or Apache?
> On Jul 30, 2015 3:48 PM, "Jonathan Vanasco" <[email protected]> wrote:
>
>> We have a need build out a small "developer" site that will live on `
>> developers.domain.com`
>>
>> The current idea to implement is this:
>>
>> 1. Serve off of a route that is "/developers/"
>> 2. Write all html as if we're on "developers.domain.com"
>> 3. In production: rewrite `developers.domain.com/PATH`
>> <http://developers.domain.com/PATH> to `domain.com/developers/PATH`
>> <http://domain.com/developers/PATH>
>> 4. In dev: use a tween to regex "developers.domain.com" urls onto  `
>> domain.com/developers/` <http://domain.com/developers/>
>>
>> Can anyone offer other ideas?  We'd like to avoid functions for
>> generating urls as-needed, because there are a lot of URLS at play
>> (documentation cross references, etc).
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "pylons-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/pylons-discuss.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/pylons-discuss.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to