InsideDarkWeb.com

Apache and Nginx

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.

Ask Ubuntu Asked by Nate Sturtz on November 11, 2021

1 Answers

One Answer

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:

Install Nginx

sudo apt-get update && apt-get install nginx

sudo systemctl start nginx.service
sudo systemctl enable nginx.service

Install Apach2

sudo apt-get install apache2

Nginx Config for IredMail

https://www.nginx.com/resources/wiki/start/topics/recipes/iredmail/

Like mention in the comment by @hextex, we need to know the port of your webserver to configure it correctly for nginx.

Nginx to configure multiple webpages

https://webdock.io/en/docs/how-guides/how-configure-nginx-to-serve-multiple-websites-single-vps

I hope this helps.

Answered by Competo on November 11, 2021

Add your own answers!

Related Questions

I cant install old nvidia driver after kernel update

1  Asked on August 25, 2020 by mersadakbari

         

How to solve public key error when running Ansible playbook

0  Asked on August 25, 2020 by frank-din

   

I am trying to make a Windows Install USB, but there are issues

1  Asked on August 23, 2020 by infinitejayz

   

Use phone as microphone in Linux

6  Asked on August 22, 2020 by someanon

         

Can Ubuntu TRIM another (NTFS) partition?

4  Asked on August 21, 2020 by user259452

       

Skip Unneeded services in Ubuntu boot

1  Asked on August 20, 2020 by pasmon-79

   

Windows very very slow after system upgrade?

0  Asked on August 17, 2020 by asher

     

Instaling UBUNTU in XPS 11 2-in-1 Ultrabook

0  Asked on August 16, 2020 by adriano-alejandro-bustos-musta

   

Uninstall gcc-5.4.0 to run gcc-4.8 as default

3  Asked on August 9, 2020 by claudio-nahmad

   

Can’t boot from Ubuntu USB stick

4  Asked on August 7, 2020 by poorav

   

How to record the RAM usage during Python and C++ run time?

1  Asked on August 6, 2020 by generalcode

       

Frontend for TTS – Ubuntu 20.04

0  Asked on August 4, 2020 by nikol

 

Ask a Question

Get help from others!

© 2021 InsideDarkWeb.com. All rights reserved.