Welcome! Log In Create A New Profile

Advanced

Create a single config for multiple Apache virtual hosts.

August 26, 2015 06:48AM
Hi everyone!

First time posting here, I have been searching online but have not found any good solutions yet.

I am trying to run nginx as reverse proxy for Apache, running multiple virtual hosts (domains) on the same ip.

I wanted to know if it is possible to have a single nginx config, that would pass the correct url/hostname/path to Apache, without having to create a separate server block for each domain. For example if all domain directories are the same as their hostnames:
/var/www/mydomain.com/
/var/www/anotherdomain.org/
...

If it is - are there any potential issues with this setup?

Thanks in advance!
Subject Author Posted

Create a single config for multiple Apache virtual hosts.

YemSalat August 26, 2015 06:48AM

Re: Create a single config for multiple Apache virtual hosts.

Francis Daly September 01, 2015 02:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 82
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready