I want to run both Apache2 and Nginx on the same server, how do I do this? I am running Ubuntu 20.04 server, I am installing iredmail for my server and I want to use this and run my website at the same time.
just check this tutorial, there's everything explained regarding your question to setup and configure ngxinx and apache2 https://websiteforstudents.com/setup-nginx-reverse-proxy-apache2-ubuntu-17-04-17-10/
It's an older version of ubuntu, but I think there should be no difference.
Here the installation scripts of it:
sudo apt-get update && apt-get install nginx sudo systemctl start nginx.service sudo systemctl enable nginx.service
sudo apt-get install apache2
Like mention in the comment by @hextex, we need to know the port of your webserver to configure it correctly for nginx.
I hope this helps.
Answered by Competo on November 11, 2021
1 Asked on August 25, 2020 by mersadakbari
0 Asked on August 25, 2020 by frank-din
1 Asked on August 23, 2020 by infinitejayz
6 Asked on August 22, 2020 by someanon
4 Asked on August 21, 2020 by user259452
1 Asked on August 20, 2020 by t-lorax
1 Asked on August 20, 2020 by pasmon-79
0 Asked on August 19, 2020 by eman
0 Asked on August 17, 2020 by pavan-kpl
0 Asked on August 16, 2020 by adriano-alejandro-bustos-musta
0 Asked on August 14, 2020 by y-huang
2 Asked on August 13, 2020 by venus
3 Asked on August 9, 2020 by claudio-nahmad
1 Asked on August 6, 2020 by generalcode
0 Asked on August 4, 2020 by userdepth
1 Asked on August 2, 2020 by manu-mathur
Get help from others!