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

GET http://0.0.0.0:3001/dist/bundle.js net::ERR_CONNECTION_REFUSED #28

Open
jaivintricore opened this issue Jan 19, 2018 · 0 comments
Open

Comments

@jaivintricore
Copy link

Hello @andreftavares

I have installed your app on my server and to access app through web I have set virtualhost using proxy and reverse proxy and point it to my domain name.

Something like
ServerName example.com
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/
Now I can see your app at example.com but with no css. When I check console it is showing missing bundle.js because it has host and port like 0.0.0.0:3001. If I run site in my localhost it is working good but on server it has issue due to those host and port.

https://www.awesomescreenshot.com/image/3112309/93e7209546c237ed58442d4f9a3d65df
GET http://0.0.0.0:3001/dist/bundle.js net::ERR_CONNECTION_REFUSED

So is there any work around to fix this issue? I am seeing those host and port defined in dev.config.js and I am not sure how to fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant