HelIo,

I've got a composite application using urlmap with two applications on 
different url prefixes. The documentation for virtual hosting at 
https://pylonsproject.org/projects/pyramid/dev/narr/vhosting.html doesn't 
say what I need to do to have my routes generate the correct URL.

When I use request.route_path or request.route_url it always gives me a url 
without the prefix /pyramidapp. But if I add /pyramidapp to the route's 
pattern or I use config.include with route_prefix=pyramidapp then no 
incoming routes match because urlmap passes everything after /pyramidapp as 
the path. 

Is there a step I missed to tell the route generation that I am using urlmap 
to do virtual hosting?

As an alternative: is there a way to tell url map to use subdomains for 
virtual hosting (I use route_path for url generation)? 
It looks like the urlmap function can do it 
(http://pythonpaste.org/modules/urlmap.html) but I don't see how to do that 
in the config file.

Thanks for the help,

Jason

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pylons-discuss/-/uAPF9156JCYJ.
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