I'm testing rails app deployment with apache2 and phusion passenger 4. This is my apache conf:
<Location /myproject>
ProxyPass http://localhost:3000
ProxyPassReverse http://localhost:3000
</Location>
then I start passenger in standalone mode in myproject directory:
passenger start -a 127.0.0.1 -p 3000 -d
When I point my browser to https://mydomain.com/myproject the home page shows up correctly but no css or js is loaded because the links to the assets are like:
<link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css">
which points to:
https://mydomain.com/assets/application.css
but should be:
https://mydomain.com/myproject/assets/application.css
How can fix this on apache or rails side?