hosting web-app on windows server (windows 11)

huangapple go评论67阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年6月5日 04:35:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/76402319.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定