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 |
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 |
<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>
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;
}