> On 13 Jan 2016, at 10:50 AM, Gavin Cannizzaro <[email protected]> > wrote: > > Many thanks for the reply. > > The rewrites are part of a file versioning scheme, where the "version" part > of some paths is simply ignored. So redirects won't apply. But since it > only involves static files under a definite location, it sounds like the > Directory option will work for me. > > That said, I did try an express-free setup---both from scratch and with an > express-generated config. I did not get it working either way. I was hoping > to host multiple sites on the same VM, and it looks like with express the > only way to do that is via something like ProxyPass. That works, except that > (at least on my local) I get intermittent 502 errors with that setup. It > also messed with keep-alive connections. So I abandoned that. But I > understand I could accomplish the same thing with Virtual hosts if I > understood the generated config (which I don't yet). > > I know I've changed subjects here, but... are there any requirements/tips for > using moving a generated setup to a virtual host config? When I tried it, I > wasn't sure how to define all of the MOD_WSGI variables.
Trying to take what it generates and repurpose it for a VirtualHost may be more trouble than its worth. Maybe easier to understand what you need and just highlight what the key parts of the configuration are that you need. In part mod_wsgi-express is targeting a Docker based deployment environment where different hosts would be in different containers for haproxy or some other router in front. That is the reason why mod_wsgi had all this magic stuff added to help in fixing up host information in WSGI environment based on proxy headers. There are some WSGI middleware which do this, but generally don’t do it right and only support a subset of what headers are often used out there. Graham -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
