> Von: [email protected] 
> [mailto:[EMAIL PROTECTED] Im Auftrag von Ian Bicking
> Gesendet: Montag, 12. November 2007 19:28
> An: [email protected]
> Betreff: Re: Routes: Subdomain won't work with referers (bug?)
> 
> 
> Andrew Smart wrote:
> > Hi folks,
> > 
> > I have the following setup: 
> > - one webserver serving the public avaiable domain 
> > (www.thisdomain.com)
> > - a subdomain is pointing to a app server (shop.thisdomain.com) 
> > running on a different server
> 
> Why are you using a route for this?  Can't you just, like... 
> put the Pylons app on the right server?  I.e., on the right 
> interface, or put a proxy in a virtual host, or... however 
> your server is laid out.

I'm going to have 2 subdomains pointing to two controllers for every
customer which is using this approach 
-> customer.thiswebsite.com
-> shop.thiswebsite.com

Maybe both apps may have links like /login 
-> customer.thiswebsite.com/login
-> shop.thiswebsite.com/login

So I guess I need the sub_domain approach to route to the correct "login". I
could go around this restriction by carefully designing controllers and
map-routes, but I expected sub_domain would be simple, easy & nice to do
this job. After all it has been built for subdomain based route filtering...

I can't put my app onto the servers of my customers, since we all are going
to use the same data basis, and a central app is required. Also: I won't
give away my knowledge, also ;-)

Some of the customers are going to use primitive websharing, so I can't
assume that they are able to change apache config's or that they are able to
create vhosts. The easisest thing is: they add a subdomain which points to
my server (or the hoster does), and the add a static HTML link into their
website.

So anything which would require advanced apache or server config hacks on
the customers servers is ruled out. I've a apache2 using mod_proxy to talk
to my Pylons app - if there is any "simple" config option in Apache which
would manipulate the HTTP_HOST var would be appreciated. I can change my
apache config, at least.

Kind regards,
Andrew


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to