name: Deployment with Apache
sort: 4
Apache deployment and configuration
Apache is a web server and is set up to perform the same functions as nginx, serving as a reverse proxy and sending requests to the backend. Here is a configuration example:
NameVirtualHost *:80<VirtualHost *:80>ServerAdmin webmaster@dummy-host.example.comServerName www.a.comProxyRequests Off<Proxy *>Order deny,allowAllow from all</Proxy>ProxyPass / http://127.0.0.1:8080/ProxyPassReverse / http://127.0.0.1:8080/</VirtualHost><VirtualHost *:80>ServerAdmin webmaster@dummy-host.example.comServerName www.b.comProxyRequests Off<Proxy *>Order deny,allowAllow from all</Proxy>ProxyPass / http://127.0.0.1:8081/ProxyPassReverse / http://127.0.0.1:8081/</VirtualHost>
