Re: SNI support for nginx

2016-07-06 Thread Yichun Zhang (agentzh)
Hello! On Tue, Jul 5, 2016 at 11:57 PM, Christian Rohmann wrote: > On 07/04/2016 12:31 PM, Sushma wrote: >> Or is there a way, nginx will be able to dynamically figure out the cert to >> be presented without it being explicitly mentioned via the directive >> ssl_certificate? > > After some researc

Re: Nginx static file serving - Some files are 404, some not

2016-07-06 Thread Richard Stanway
Check out try_files. http://nginx.org/en/docs/http/ngx_http_core_module.html#try_files On Wed, Jul 6, 2016 at 3:44 PM, Lantos István wrote: > Sorry, the parent folder, /images/art was uncommented in .gitignore, > that's why didn't uploaded into my repo. Problem solved. > > Still, is there any m

Re: Nginx static file serving - Some files are 404, some not

2016-07-06 Thread B.R.
location / only means 'a location which starts with /'. Basically, this catches every single request, and is the least specific way (lowest precedence ever) to do so. When choosing the most suitable location block, nginx will most of the time use a more specific one. That is why this is called 'def

Re: Setting ssl_ecdh_curve to secp384r1 does not work

2016-07-06 Thread Maxim Dounin
Hello! On Wed, Jul 06, 2016 at 09:15:59AM +0200, Florian Reinhart wrote: > Is there any way to know what curves "auto" will include on my > system? This is not currently possible, AFAIK, and depends on the OpenSSL library used. Here is a short summary for varions OpenSSL version I've previou

Re: Nginx static file serving - Some files are 404, some not

2016-07-06 Thread Lantos István
Sorry, the parent folder, /images/art was uncommented in .gitignore, that's why didn't uploaded into my repo. Problem solved. Still, is there any method to share static files? Something like expose the public folder into / URL, but without blocking the route? 2016-07-06 14:38 GMT+02:00 Lantos Ist

Nginx static file serving - Some files are 404, some not

2016-07-06 Thread Lantos István
I have the following server configuration block: > > > > > > > > > > > > > > > > > > > > > > > > > *server {# Running portlisten 80; # ipv4listen > [::]:80; # ipv6server_name localhost;root > /var/www/html;# Proxying the connections connectionslocation / > {

Re: How to leverage HTTP upstream features

2016-07-06 Thread Maxim Dounin
Hello! On Tue, Jul 05, 2016 at 05:00:03PM -0400, Charles Orth wrote: > I'm new to nginx... > I would like to define upstream handler in HTTP without a HTTP server > listener. From SMTP/POP3/IMAP I would like > to use the upstream handler for my http endpoint. Thus requiring > http_upstream initia

Re: basic nginx setup help as load balancer

2016-07-06 Thread Reinis Rozitis
> I'm new to servers and proxies, > But don't you think running both nginx and Apache on port 80 of same machine > will cause one of those to fail to start. > In my opinion backend should be on different IP:port combination. > Please correct me if I'm wrong. It is correct (though you can work ar

Re: basic nginx setup help as load balancer

2016-07-06 Thread Reinis Rozitis
Thank you. In my setup all 3 servers in the upstream block will answer requests for "myapplication.net" . Knowing that, would you say my config I have is sufficient? It should be yes. rr ___ nginx mailing list nginx@nginx.org http://mailman.nginx.

Erro 499 help

2016-07-06 Thread NemoPang
My web architecture is: nginx(reverse proxy) -> nginx + php-fpm It's normal when i curl it on pc(linux shell and pc Browser). This's nginx(reverse proxy) access.log: 117.136.40.0 - - [06/Jul/2016:17:38:31 +0800] "GET /a.php HTTP/1.1" 200 66 ... It's not normal when i access it on my phone(a

Re: Setting ssl_ecdh_curve to secp384r1 does not work

2016-07-06 Thread Kurt Cancemi
Hello, The following are in auto: secp256r1 secp521r1 brainpool512r1 brainpoolP384r1 secp384r1 brainpoolP256r1 secp256k1 If not configured with OPENSSL_NO_EC2M sect571r1 sect571k1 sect409k1 sect409r1 sect283k1 sect283r1 #endif From OpenSSL source: https://github.com/openssl/openssl

Re: Setting ssl_ecdh_curve to secp384r1 does not work

2016-07-06 Thread Florian Reinhart
Hi Maxim! Thanks for investigating this! I thought ssl_ecdh_curve was only used to specific curves for ECDHE. Is there any way to know what curves "auto" will include on my system? —Florian > On 05 Jul 2016, at 20:16, Maxim Dounin wrote: > > Hello! > > On Tue, Jul 05, 2016 at 05:02:07PM +02

Re: basic nginx setup help as load balancer

2016-07-06 Thread Pratyush Kumar
I'm new to servers and proxies, But don't you think running both nginx and Apache on port 80 of same machine will cause one of those to fail to start. In my opinion backend should be on different IP:port combination. Please correct me if I'm wrong. On 05-Jul-2016 21:41, "NdridCold ." wrote:  I wa