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

One server, two IPs: Deploy fails when Apache is running #739

Open
sanneterpstra opened this issue Nov 6, 2015 · 2 comments
Open

One server, two IPs: Deploy fails when Apache is running #739

sanneterpstra opened this issue Nov 6, 2015 · 2 comments

Comments

@sanneterpstra
Copy link

Hello,

I have two IP address bound to my server. One IP is for Apache and one is for Meteor. Both are running on port 80.

  • Apache runs on 000.000.000.000:80
  • Meteor runs on 000.000.000.001:80

When apache is stopped, deploying my meteor app goes fine. However when Apache is running I get a deployment error stating: Failed to connect to localhost port 80: Connection refused

I have bound apache to its IP address by setting the port.conf to:
Listen 000.000.000.000:80
Also, all my virtual hosts are bound by:
<VirtualHost 000.000.000.000:80>

Meteor is bound to its IP address by setting the environment variable in mup.json:
"BIND_IP": "000.000.000.001"

It seems that the deployment process tries to connect to localhost for verification but can't because apache is active on localhost port 80. I'm not sure what's going on since I specifically bound apache to its own IP address. Do you know what I'm doing wrong?

@MasterJames
Copy link

Im not too clear on your setup, but thought it worth mentioning for your consideration. If you're using mupx 'docker run' has a -p flag for associating ports and IPs (multiple entries are allowed). It makes iptable enties I believe.
Maybe you could change that in the template start.sh?

@sanneterpstra
Copy link
Author

Thanks, I'm using mup tough. It also seems related to this issue #384

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

2 participants