I have a frontend Apache that acts as a proxy to my backend 
mod_wsgi-express proxy to fix an issue that I had before (see 
https://groups.google.com/forum/#!topic/modwsgi/GTjMMm4wZJI).

My front end configuration looks like this:
<IfModule mod_ssl.c>
        <VirtualHost _default_:443>
                ServerName example.com
                ServerAdmin [email protected]

                <Proxy *>
                  AuthType Basic
                  AuthUserFile /data/passwords/passwords.pwd
                  AuthName "myDemoApp"
                  <RequireAll>
                    Require valid-user
                  </RequireAll>
                </proxy>

                <Location "/">
                  ProxyPass              "http://example.com:8001/";
                  ProxyPassReverse       "http://example.com:8001/";
                  RequestHeader set X-Forwarded-Proto "https"
                </Location>

                :

        </VirtualHost>
</IfModule>

and my mod_wsgi-express looks like this:
mod_wsgi-express setup-server /data/website/myApp/wsgi.py \
    --reload-on-changes \
    --port 8001 \
    --user www-data --group www-data \
    --server-root /var/www/my_app \
    --log-level info \
    --access-log

This setup works perfectly fine and opens my page when I go on 
https://example.com. But I would like to use my proxy to forward the 
requests to different backends, depending on the URL.

To this end, I changed the <Location "/"> to <Location "/bla/">. Not when I 
open the website at https://example.com I get the Apache2 Default Page, 
which is what I would expect. But when I try to open 
https://example.com/bla/ it simply doesn't load the website (no error or 
something, just the Loading...). I don't get any error, neither in the 
frontend nor in the backend log.

Does anybody have an idea what might be wrong with my configuration?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/889266ce-91e2-4ac3-a9ed-0fd13e6d9ed6%40googlegroups.com.

Reply via email to