I use an Apache server as a proxy for my playframework application. The proxy configure file is like this:
> <VirtualHost *:80>
> ProxyPreserveHost Off
> ServerAdmin redhorse@viform.net
> DocumentRoot "/home/admin/www"
> ServerName viform.net
> ErrorLog "logs/viform.net-error.log"
> ProxyPass /zh-cn/ http://localhost:9000/
> ProxyPassReverse /zh-cn/ http://localhost:9000/
> </VirtualHost>
When I access http://viform.net/zh-cn/signin, It shows me the correct page. But the urls of static resources in the page are not correct. The generated html page code is like this:
...
<script type="text/javascript" src="/public/javascripts/base.js">
</script>
<script type="text/javascript" src="/public/javascripts/secure/submitbutton.js">
</script>
<script type="text/javascript" src="/public/javascripts/secure/signinpanel.js">
</script>
...
The browser can not find these resources since their src paths should start with "/zh-cn". Is there anyone can help me figure this out? Thanks.