multiple subdomains
Francis Daly
francis at daoine.org
Thu Sep 17 19:47:14 UTC 2015
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 at daoine.org
More information about the nginx
mailing list