Welcome! Log In Create A New Profile

Advanced

Re: Qustion for reverse-proxy for virtual host

All files from this thread

File Name File Size   Posted by Date  
smime.p7s 5.7 KB open | download Brian Henson 10/06/2009 Read message
October 06, 2009 04:22AM
On Mon, Oct 05, 2009 at 04:00:23PM +0800, quan nexthop wrote:

> Hi all:
>
> I try to setup the NGINX as a reverse-proxy to protect several webservers,
> which lots of websites are running on. Yes, it is a virtual host :)
>
> abc.com |-----------[nginx reverse proxy] ------- |virtualhost] ----/abc
> directory
> 123.com|
> |--/123 directory
>
> [note] the virtualhost port is 80.
>
> I go through the wiki.nginx.net and can not find any configuration related
> with the topology.
>
> Any one can paste a configuration for such case?
> how can I distinguish the different server in one listening port?

Probably you need

server {
server_name abc.com;
location / {
proxy_pass http://123.com/abc/;
}
}

server {
server_name def.com;
location / {
proxy_pass http://123.com/def/;
}
}


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

Qustion for reverse-proxy for virtual host

nexthop October 05, 2009 04:08AM

Re: Qustion for reverse-proxy for virtual host

nexthop October 05, 2009 12:30PM

RE: Qustion for reverse-proxy for virtual host Attachments

Brian Henson October 06, 2009 02:18AM

Re: Qustion for reverse-proxy for virtual host

Igor Sysoev October 06, 2009 04:22AM

Re: Qustion for reverse-proxy for virtual host

nexthop October 11, 2009 06:02AM

Re: Qustion for reverse-proxy for virtual host

Igor Sysoev October 11, 2009 11:20AM

Re: Qustion for reverse-proxy for virtual host

nexthop October 11, 2009 02:50PM

Re: Qustion for reverse-proxy for virtual host

Igor Sysoev October 11, 2009 03:04PM

Re: Qustion for reverse-proxy for virtual host

nexthop October 12, 2009 11:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 227
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