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

nginx listen on specific ip #2391

Closed
0xbadc0de opened this issue Dec 2, 2019 · 3 comments
Closed

nginx listen on specific ip #2391

0xbadc0de opened this issue Dec 2, 2019 · 3 comments
Labels

Comments

@0xbadc0de
Copy link

Info:

  • Docker version ($ docker --version): Docker version 18.09.1, build 4c52b90
  • Laradock commit ($ git rev-parse HEAD): 50b6272
  • System info (Mac, PC, Linux): Linux
  • System info disto/version: Debian 10

Issue:

Hello! I'm using laradock to server several projects. Each project should listen on their own ip (192.168.1.101, 192.168.1.102, 192.168.1...). Currently nginx container listening on all ip addresses. How i can make what i want? Port forward on the host? All configs are default. Thanks!

@metalcamp
Copy link
Contributor

Look at this: https://serverok.in/configure-nginx-to-listen-on-single-ip-address

I presume you're using it on development machine. Why don't you just use domain names like project1.local, project2.local in nginx config and add those entries to hosts file?

@stale
Copy link

stale bot commented May 19, 2020

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.

@stale stale bot added the Stale label May 19, 2020
@stale
Copy link

stale bot commented Jun 9, 2020

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants