Update: I think the poster is using Windows, but it is difficult to use nginx. Let’s solve it in apache. Set up a virtual host in apache, and then proxy it to iis.
Original answer:
Same as above, set up nginx on the front end, give 80 to Nginx, then make a virtual host and proxy to apache, iis, tomcat, nodejs and other services.
Modify it depends on which service your port 80 needs to correspond to. apache and IIS must run different services. Choose your main service to use port 80. Another option is to choose any unoccupied port such as 8080 code>8080 然后再用nginxThen use nginx as a reverse proxy to this port
Update:
Original answer:I think the poster is using Windows, but it is difficult to use nginx. Let’s solve it in apache. Set up a virtual host in apache, and then proxy it to iis.
Same as above, set up nginx on the front end, give 80 to Nginx, then make a virtual host and proxy to apache, iis, tomcat, nodejs and other services.
Modify it depends on which service your port 80 needs to correspond to.
apache and IIS must run different services.
Choose your main service to use port 80.
Another option is to choose any unoccupied port such as
8080 code>
8080
然后再用
nginx
Then usenginx
as a reverse proxy to this port