Apache rewrite rule for html5 pushstate with proxy and exclusions
问题 I am using apache as http server, tomcat8 as application server ( rest ) and express as angular2 static server. Following is my virtual host element <VirtualHost *:80> ... other things - name path and logs ... ProxyPass /rest/ http://localhost:8080/rest/ ProxyPassReverse /rest/ http://localhost:8080/rest/ ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/ </VirtualHost> Basically what I am doing is, whenever someone hits http://localhost he should see static web app