Welcome! Log In Create A New Profile

Advanced

Re: Nginx to server secure and not secure traffic

October 01, 2012 03:33PM
Hi.
hsrmmr Wrote:
-------------------------------------------------------
> My question is :
> 1. Does Nginx always picks the first server from the config ...
> irrespective of what client has requested and passes to proxy
> (php-fpm)?

First is actually the server name, and others - is just aliases.
If you want to send requested hostname to backend - use $hostname instead.

> 2. We have a lot of rules, so if we create two separate server (as per
> following) do I need to copy the rules in both places? It there any
> maintainable way, like 'include /common_rules.conf'?

Yes you can.
Just "include conf/share_config.conf;"
SubjectAuthorPosted

Nginx to server secure and not secure traffic

hsrmmrOctober 01, 2012 12:22PM

Re: Nginx to server secure and not secure traffic

Priority1October 01, 2012 03:33PM

Re: Nginx to server secure and not secure traffic

hsrmmrOctober 02, 2012 12:30AM

Re: Nginx to server secure and not secure traffic

hsrmmrOctober 02, 2012 01:03AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 90
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready