[TriZPUG] Who is using Apache httpd in front of Python webapps?

Joseph S. Tate dragonstrider at gmail.com
Thu Apr 17 04:47:04 CEST 2014


location /api {
        proxy_set_header Host $host;
        proxy_redirect http://{{public_hostname}}:443/ https://
{{public_hostname}}/;
        proxy_set_header X-Forwarded-Proto https;
        proxy_set_header X-Forwarded-Port $server_port;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_read_timeout 180s;
        proxy_pass http://proxied_host;
}

This seems to work the best for us.



On Wed, Apr 16, 2014 at 9:03 PM, Jeff Trawick <trawick at gmail.com> wrote:

> On Wed, Apr 16, 2014 at 7:47 PM, Joseph S. Tate <dragonstrider at gmail.com>wrote:
>
>> I used to use mod_python, but now use mod_proxy (usually as mod_rewrite
>> "RewriteRule ^(.*) http://127.0.0.1:5000/$0 [P]" so that I have more
>> flexibility for creating custom URLs to be handled by other apps. WSGI can
>> be used for this, but Apache is faster.
>>
>> But, that's only for a site that I put up 5 years ago and still maintain.
>> New sites I put behind nginx. Deployment is simpler, options are more
>> plentiful, memory footprint is much lighter, and it's faster to boot.
>>
>
>
> With nginx, do you use plain HTTP reverse proxy?
>
>
>> --
>> Joseph Tate
>>
>> _______________________________________________
>> TriZPUG mailing list
>> TriZPUG at python.org
>> https://mail.python.org/mailman/listinfo/trizpug
>> http://trizpug.org is the Triangle Zope and Python Users Group
>>
>
>
>
> --
> Born in Roswell... married an alien...
> http://emptyhammock.com/
> http://edjective.org/
>
>
> _______________________________________________
> TriZPUG mailing list
> TriZPUG at python.org
> https://mail.python.org/mailman/listinfo/trizpug
> http://trizpug.org is the Triangle Zope and Python Users Group
>



-- 
Joseph Tate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/trizpug/attachments/20140416/13d82daf/attachment-0001.html>


More information about the TriZPUG mailing list