I need to redirect all requests from http://example.com/app to http://app.example.com/. In VirtualHost I can only specify a ServerName as example.com. I only want requests from the host plus a specific path to be redirected to the domain with subdomain.
<VirtualHost *:80> ServerName example.com/app ProxyPreserveHost Off ProxyPass / http://app.example.com/ ProxyPassReverse / http://app.example.com/ </VirtualHost>