search

Home  >  Q&A  >  body text

nginx - About server setup issues

I have a server that I have been using for a long time. I installed nginx before. Now I need to install one more apache and use two services at the same time. In order not to affect the website that is running now, what problems will I encounter after installing Apache? What configuration should be modified? Moreover, the data of the website is too large to facilitate relocation

仅有的幸福仅有的幸福2755 days ago575

reply all(3)I'll reply

  • 阿神

    阿神2017-05-16 16:59:35

    You may encounter port conflicts. Use nginx to monitor port 80, and apache to monitor port 8080. Then, if you want to access apache services, nginx will forward them to apache. In order to prevent others from accessing apache directly through 8080, you can limit the access IP to 127.0.0.1 (i.e. this machine) in apache

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-16 16:59:35

    There may be a port conflict. Change to another port. There will be no conflict with the others

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-16 16:59:35

    Put nginx in front, apache uses another port, and then use nginx to forward it to apache

    reply
    0
  • Cancelreply