I run a meteor app on production, using Meteor UP to deploy, I use apache as a proxy.
When I surf directly to a page (www.example.net/any-page) on production, i'm being redirected (to www.example.net)
After following the answer from this question (thx to comments), I currently have this apache config:
<VirtualHost *:80>
ServerName example.net
Redirect permanent / http://www.example.net/
</VirtualHost>
<VirtualHost *:80>
ServerName www.example.net
ServerAlias example.net
ProxyRequests off
RewriteEngine on
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location />
ProxyPass http://localhost:8081/
ProxyPassReverse http://localhost:8081/
</Location>
</VirtualHost>
All traffic to example.net is being redirected to www.example.net. Perfect. But all traffic to (www.)example.net/any-page-or-folder is also being redirected to www.example.net. Not so perfect. I don't understand what's wrong with my config and I think I correctly implemented the answer to the other stackoverflow question .
This question actually originates from this problem