Why not?

    server {
        listen       80;
        server_name  localhost;
        location / {
            alias /Users/ruz/projs/localhost/;
        }
    }
    server {
        listen       80;
        server_name  example.com;
        location / {
            proxy_pass ...;
        }
    }
    server {
        listen       80;
        server_name  example.ru;
        location / {
            proxy_pass ...;
        }
    }


On Fri, Dec 8, 2017 at 9:18 AM, carrotis <[email protected]>
wrote:

> Hello
>
>
> I'm trying to configure a reverse proxy for multiple domains with a single
> nginx server.
>
> Is that possible
>
> eg.
>
> <Clients> ----[HTTP 2.0]-->   < Nginx >   ---[HTTP 1.1]--- > <OriginServer>
>
> Posted at Nginx Forum: https://forum.nginx.org/read.
> php?2,277698,277698#msg-277698
>
> _______________________________________________
> nginx mailing list
> [email protected]
> http://mailman.nginx.org/mailman/listinfo/nginx
>



-- 
Руслан Закиров
Руководитель отдела разработки веб-сервисов
+7(916) 597-92-69, ruz @  <http://www.sports.ru/>
_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to