Home  >  Q&A  >  body text

Server - apache and IIS occupy port 80 at the same time. Which one should be changed?

Which one should be changed? How much should it be changed to? ?

滿天的星座滿天的星座2713 days ago553

reply all(2)I'll reply

  • PHPz

    PHPz2017-05-16 17:01:27

    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.

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-16 17:01:27

    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 80808080
    然后再用nginxThen use nginx as a reverse proxy to this port

    reply
    0
  • Cancelreply