Mikko,

The best agnostic impl I know for url prefix is the PasteDeploy prefix 
middleware.

https://docs.pylonsproject.org/projects/pastedeploy/en/latest/modules/config.html#paste.deploy.config.PrefixMiddleware

You can mount it in your ini pipeline pretty easily:

[pipeline:main]
pipeline =
    prefix
    myapp

[filter:prefix]
use = egg:PasteDeploy#prefix
prefix = /foo


> On May 18, 2022, at 02:03, Mikko Ohtamaa <[email protected]> wrote:
> 
> 
> 
> On Fri, 13 May 2022 at 00:14, Jonathan Vanasco <[email protected] 
> <mailto:[email protected]>> wrote:
> - What's the recommended modern multiprocess enabled web server to do more 
> scaleable Pyramid hosting?
> 
> I like uWSGI, but others like gunicorn and I think there is another popular 
> option. 
> 
> I decided to go with Gunicorn, because I used uWSGI extensively. Gunicorn is 
> somewhat easier to manage with modern Python package management tools like 
> Poetry, plus you do not encounter the potential issues raising from compiling 
> C.
> 
> So far so good, only option I missing from Gunicorn is Waitress's 
> "url_prefix". Is there a generic way for setting the WSGI application root /  
> URL prefix that is not specific to Waitress?
> 
> Opened a StackOverflow question on this one: 
> https://stackoverflow.com/questions/72284506/setting-application-url-prefix-with-gunicorn
>  
> <https://stackoverflow.com/questions/72284506/setting-application-url-prefix-with-gunicorn>
> 
> Br,
> Mikko
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/CAK8RCUtMQwaPvG3QdrjGgpt9sB_pHb3ZHzODF_V1TN56T%2BGmOw%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/pylons-discuss/CAK8RCUtMQwaPvG3QdrjGgpt9sB_pHb3ZHzODF_V1TN56T%2BGmOw%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/5A6F5EB4-A6DC-4DF3-8A6F-5B6F1CCA035C%40gmail.com.

Reply via email to