binarythistle / S04E03---.NET-Microservices-Course-

Code for the Introduction to .NET Microservices
592 stars 329 forks source link

NGINX ingress doesn't work on Windows with enabled "Internet Information Services" feature #4

Open maskalek opened 3 years ago

maskalek commented 3 years ago

If "Internet Information Services" feature is enabled on Windows image Then on any "acme.com" requests 404 page is appeared

Any solutions but disabling IIS?

p.s. yes, I have the mapping in config 127.0.0.1 acme.com

gygprog commented 3 years ago

I'm having the same issue on Win platform. When making GET http://acme.com/api/platforms/ then returns 404 not found. When making GET http://acme.com then returns 200 OK with empty body which is correct. acme.com was added to hosts.

ifanzalukhu97 commented 3 years ago

Hi @maskalek and @gygprog , for me it works after I change default IIS port. I change the default IIS port form 80 to 8081. It's seems NGINX ingress used same port as IIS Port (80). How to change IIS Port

jpaquete commented 2 years ago

Hello, I am having this hehaviour even after uninstalling IIS... Any clues ? .. The course was running great without issues until now... Thx!

jpaquete commented 2 years ago

Fixed it by stopping SQL Server Reporting Services that also uses port 80 :)

8lueFox commented 1 year ago

Everyone of us had the same problem and different solutions. In my case, this have helped me to stop all http services which started to use port 80. I have diagnosed this by looking at services and if they are working on this port, it was a "System". I used command "net stop http" in CMD with administrator privileges. If this doesn't work, you should repeat the command.