Score:0

Only one of proxy works out of multiple defined in a VirtualHost

cn flag

This is my configuration for reverse proxy using the Apache web server.

Listen 88
<VirtualHost *:88>
        ProxyPreserveHost On

        ProxyPass /ecommerce/api/ http://127.0.0.1:8000/api/
        ProxyPassReverse /ecommerce/api/ http://127.0.0.1:8000/api/

        ProxyPass /ecommerce/app/ http://127.0.0.1:3000/
        ProxyPassReverse /ecommerce/app/ http://127.0.0.1:3000/
</VirtualHost>

The first ProxyPass works but the second doesn't. http://my-ip:88/ecommerce/api/ works but not http://my-ip:88/ecommerce/app/.

The following works:

Listen 88
<VirtualHost *:88>
        ProxyPreserveHost On

        ProxyPass /ecommerce/api/ http://127.0.0.1:8000/api/
        ProxyPassReverse /ecommerce/api/ http://127.0.0.1:8000/api/

        ProxyPass / http://127.0.0.1:3000/
        ProxyPassReverse / http://127.0.0.1:3000/
</VirtualHost>

I can access the second proxy by http://my-ip:88/.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.