Apache Redirect Domain to Localhost Port
Apache: Redirect Domain To Localhost Port
When setting up a local development environment, sometimes you might want to forward a domain to any app running on localhost:port
a connection. For instance, if you are using Vagrant.
<VirtualHost *:80>
ProxyPreserveHost On
ProxyRequests Off
ServerName myapp.lc
ServerAlias myapp.lc
ProxyPass / http://localhost:8080[/app/]
ProxyPassReverse / http://localhost:8080[/app/]
</VirtualHost>