[apache] Apache redirect to another port

You need 2 things:

  1. Add a ServerAlias www.mydomain.com to your config
  2. change your proxypass to ProxyPassMatch ^(.*)$ http://localhost:8080/example$1, to possibly keep mod_dir and trailing slashes from interferring.