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;"
Subject Author Posted

Nginx to server secure and not secure traffic

hsrmmr October 01, 2012 12:22PM

Re: Nginx to server secure and not secure traffic

Priority1 October 01, 2012 03:33PM

Re: Nginx to server secure and not secure traffic

hsrmmr October 02, 2012 12:30AM

Re: Nginx to server secure and not secure traffic

hsrmmr October 02, 2012 01:03AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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