i run meteor app on production, using meteor deploy, use apache proxy.
when surf directly page (www.example.net/any-page) on production, i'm being redirected (to www.example.net)
after following answer question (thx comments), have 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 </proxy> <location /> proxypass http://localhost:8081/ proxypassreverse http://localhost:8081/ </location> </virtualhost> all traffic example.net being redirected www.example.net. perfect. traffic (www.)example.net/any-page-or-folder being redirected www.example.net. not perfect. don't understand what's wrong config , think correctly implemented answer other stackoverflow question .
this question originates problem
i use nginx this, , encourage well, looks me it's first redirect that's doing this. first redirect saying redirect page @ www.example.com example.com.
basically, goes home page no matter what.
check out answer on post you're trying do. https://stackoverflow.com/a/15057194/1327678
Comments
Post a Comment