CherryPy behind an Apache reverse proxy

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

CherryPy behind an Apache reverse proxy

Massimiliano Ciancio
Hi all,
I'm facing the following issue:
- my application, built with CherryPy, works regular if I call it on the internal network, using an URL like http://myapp.myintranet.domain:8101/
- if I call it through a reverse proxy using Apache (I don't know how it is configured :-(), using an URL like https://myapp.myexternal.domain/ it works but is REALLY SLOOOW.
Do you think the problem can be something related with CherryPy configuration?
Thanks in advance
Massimiliano

--
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: CherryPy behind an Apache reverse proxy

Sviatoslav Sydorenko (@webknjaz)
It's not enough info to make a guess, but you may find some people you tried using Apache as a reverse proxy: https://github.com/cherrypy/cherrypy/issues/1597
Also, may I suggest you increase the number of threads? Is there any difference in HTTP requests coming into an app? Maybe apache does HTTP pipelined requests?
Have you tried using WSGI app instead of HTTP proxying? mod_wsgi maybe?

понеділок, 11 червня 2018 р. 10:31:57 UTC+2 користувач Massimiliano Ciancio написав:
Hi all,
I'm facing the following issue:
- my application, built with CherryPy, works regular if I call it on the internal network, using an URL like <a href="http://myapp.myintranet.domain:8101/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fmyapp.myintranet.domain%3A8101%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6t68e_nw3LM7RFPpwlzvyaRK1vg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fmyapp.myintranet.domain%3A8101%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6t68e_nw3LM7RFPpwlzvyaRK1vg&#39;;return true;">http://myapp.myintranet.domain:8101/
- if I call it through a reverse proxy using Apache (I don't know how it is configured :-(), using an URL like <a href="https://myapp.myexternal.domain/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fmyapp.myexternal.domain%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH3icu8KhVuql6vCzjdNMVPUjv3uQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fmyapp.myexternal.domain%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH3icu8KhVuql6vCzjdNMVPUjv3uQ&#39;;return true;">https://myapp.myexternal.domain/ it works but is REALLY SLOOOW.
Do you think the problem can be something related with CherryPy configuration?
Thanks in advance
Massimiliano

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