Welcome! Log In Create A New Profile

Advanced

Re: multiple subdomains

Francis Daly
September 19, 2015 06:26AM
On Thu, Sep 17, 2015 at 09:50:21AM -0400, pwe wrote:

Hi there,

I think I may have missed some words in your mail; but if you are talking
about how to proxy_pass to different internal web servers...

> I want to realize the following:
>
> mail.domain1.com --> mail.domain1.com
> mail.domain2.com --> mail.domain2.com
> mail.domain3.com --> mail.domain3.com
> mail.domain4.com --> mail.domain4.com
> mail.domain5.com --> mail.domain5.com

server {
server_name mail.domain1.com;
location / {
proxy_pass http://mail.domain1.com;
}
}

and have four other similar server{} blocks.

The client machines must resolve mail.domain1.com to this server; this
server's system resolver must resolve mail.domain1.com to the address
that nginx should talk to. (Or you can hard-code things in nginx.conf.)

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

multiple subdomains

pwe September 17, 2015 09:50AM

Re: multiple subdomains

Francis Daly September 19, 2015 06:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 233
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready