On Thu, 2011-08-25 at 03:32 -0700, Wouter Overmeire wrote: > Trying to find out how to host pyramid app under a URL Prefix. > > Project was created using: 'paster create -t pyramid_routesalchemy', > using wsgi and runs fine. > Now i would like to add a url prefix. So that '/' really becomes '/ > prefix/'. > > As suggested in the documentation > https://docs.pylonsproject.org/projects/pyramid/1.1/narr/vhosting.html#hosting-an-application-under-a-url-prefixand > i added a [composite:main] section in my .ini file. > Unfortunately this is not possible when a [pipeline:main] section is > present. The [pipeline:main] section was generated by the paster. I > tried removing the [pipeline:main] section but that does not help. > > How can this be done?
You can rename 'pipeline:main' to 'pipeline:mypipeline': [pipeline:mypipeline] ... whatever is in your [pipeline:main] now ... [composite:main] /prefix = mypipeline Please read the PasteDeploy documentation for more information. - C -- 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.
