英文:
hosting web-app on windows server (windows 11)
问题
I decided to create a web server on my home laptop, it uses Windows Server (Windows 11), and I have a static public IP address. The web server is working in Docker containers and uses an Nginx container for requests. It works well on my VPS server (Ubuntu OS), but when I tried to set up my home server, I encountered issues (it works in localhost).
I cannot get a response through the internet to my app (I have checked that traffic goes to my laptop through the router, I started the Nginx server, and I can get responses through the internet with the public IP).
I have checked my firewall settings, and I created rules for traffic in and out on ports 80/443. What are the possible reasons for this problem? I suspect it may be related to Windows Server features, as my app works stably with the same configuration on Nginx and Docker Compose, and I have confirmed that standalone Nginx works on my home hosting.
英文:
I decided to create web-server on my home laptop, it uses windows server (windows 11), also I have static public IP address
web server is working in docker containers, it uses nginx container for requests, it works well on my vps server (ubunta OS), but when I decided to make my home server I came with troubles (it works in localhost)
- cannot get response through the internet to myapp (I have checked that traffic goes to my laptop through router, I started nginx server, and get responses through the Internet with public IP)
I have checked my firewall settings, I created rules to traffic in and out on ports 80/443
What are the possible reasons of thid problem (I suppose it is related to windows server features as my app works stable with the same configuration on nginx and docker-compose and I have checked that standalone nginx works on my home hosting)
答案1
得分: 0
docker运行在win-server上,有特定的网络配置。
作为解决方案,我建议尝试在Windows上运行Nginx作为反向代理,用于在Docker内部运行的服务。
英文:
docker running on win-server has a specific network configuration
as a solution to the problem, I suggest trying to run nginx for windows as a reverse proxy for your service running inside docker.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论