Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page continuously reloading when using reverse proxy or path prefix #2109

Closed
AntonLS opened this issue May 4, 2014 · 2 comments
Closed

Page continuously reloading when using reverse proxy or path prefix #2109

AntonLS opened this issue May 4, 2014 · 2 comments

Comments

@AntonLS
Copy link

@AntonLS AntonLS commented May 4, 2014

UPDATED with version clarification again:

Starting in version 0.8.1 whenever a reverse proxy is used,
(proxying via apache) the browser keeps prematurely reloading and doesn't ever
fully load/function, this problem also happens when a path prefix is used.

The problem does not exist in version 0.8.0.1, but does in version 0.8.1 (and the 0.8.1 rc's,)
So it looks like the 0.8.0.1 -> 0.8.1 change prevents the $ROOT_URL designated path prefix
from working, which is completely breaking for apps that use a path prefix.

I checked the browser console, and the problem is that the path prefix from the beginning
is being ignored / left out (.js files aren't found as a result) ie. an app at:
http://domain.com:####/path_prefix
will ignore path_prefix and fail to load the .js files because "path_prefix' is left out.
(Even though meteor_runtime_config.ROOT_URL_PATH_PREFIX is correct!)
(This was not a problem before meteor v0.8.1)

@glasser
Copy link
Member

@glasser glasser commented May 8, 2014

Thanks, after a bit of work on my part, I now understand the bug you're reporting, and it is a real bug that we should fix (and my fault!). However, I can't take your PR yet because you haven't signed our CLA.

That said, please read https://github.com/meteor/meteor/wiki/Contributing-to-Meteor#reporting-a-bug-in-meteor

A better bug report could have looked something like this:

I ran

 $ meteor create foo
 $ cd foo
 $ ROOT_URL=http://localhost:3000/bla meteor

I went to http://localhost:300/bla in my browser and noticed that the JS files didn't load. I viewed source and noticed that none of the JS or CSS links included /bla. After applying my PR #2129, I did the same thing and it worked.

Loading

@glasser glasser closed this in 50b7f12 May 8, 2014
@glasser
Copy link
Member

@glasser glasser commented May 8, 2014

Actually, found a simpler fix. Thanks!

Loading

glasser added a commit that referenced this issue May 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants