Score:-2

How to configure two addresses to access other frontends/port

cn flag

How do I configure two addresses to access other frontends / different ports, for example:

Address Mapping to
www.mysite.com/config (nodejs) localhost:3000
www.mysite.com/client (django) localhost:7000
jp flag
https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html
Score:1
za flag

Use the Search

Solution to not overkill your Brain in an Example

Apache

<VirtualHost *>
    ServerName www.example.com


    ProxyPass /config http://localname:3000/
    ProxyPassReverse /config http://localname:3000/

    ProxyPass /client http://localname:7000/
    ProxyPassReverse /client http://localname:7000/
</VirtualHost>

Nginx (just in case you may need it)

location /config {
    proxy_pass              http://127.0.0.1:3000;
    proxy_set_header        Host $http_host;
}
location /client {
    proxy_pass              http://127.0.0.1:7000;
    proxy_set_header        Host $http_host;
}
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.