Welcome! Log In Create A New Profile

Advanced

Re: Trouble with VHosts

Kiswono Prayogo
November 06, 2009 07:02AM
i have no experience, and i'm newbie, but based on
http://wiki.nginx.org/NginxHttpUpstreamModule

if your configuration in i don't know where:
upstream main {
       server localhost:8181;
}
upstream bs {
       server localhost:8282;
}

i guess that you should make 2 file in sites-available containing:
server {
       listen                  80;
       server_name     site.com www.site.com;
       location / {
           proxy_pass http://main
       }
}
and:
server {
       listen                  80;
       server_name     bs.site.com;
       location / {
           proxy_pass http://bs
       }
}

maybe ^^, i don't know yet, would you like to try it?

>
> Please help, I'm on the edge of killing myself. :-)
>
> --
> Pavel
>
i will pray for you ^^
Regards,
GB
Subject Author Posted

Trouble with VHosts

grmbl November 06, 2009 06:08AM

Re: Trouble with VHosts

Kiswono Prayogo November 06, 2009 07:02AM

Re: Trouble with VHosts

grmbl November 06, 2009 07:07AM

Re: Trouble with VHosts

Kiswono Prayogo November 06, 2009 07:52AM

Re: Trouble with VHosts

grmbl November 06, 2009 10:42AM

Re: Trouble with VHosts

edogawaconan November 06, 2009 08:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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