Re: Nginx sending notification

2015-08-11 Thread nginxsantos
Is there a way I can do a HTTP POST from inside Nginx? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,260738,260947#msg-260947 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Should we add php-fpm for each Virtual Host or in Global Configuration ?

2015-08-11 Thread sunzeal
This is my configuration for my Virtual Host. I am not sure, but is this the ideal way of defining things ? For every domain / sub-domain, i'm adding a location ~/.php directive. Should i add it in the global nginx.conf itself instead of specifying individually for each domain i add ? Sample Conf

Re: Nginx serving self-signed cert instead of the one defined in conf

2015-08-11 Thread Arno0x0x
Hi Maxim, Thanks for your answer. Alas ! I check all config files in my /etc/nginx directory, there's only one containing the server{} directive (for the sake of it, I added the default_server to the listen directive, but it doesn't change anything) : -

Re: Nginx serving self-signed cert instead of the one defined in conf

2015-08-11 Thread Maxim Dounin
Hello! On Tue, Aug 11, 2015 at 01:27:23PM -0400, Arno0x0x wrote: > Hello, > > I'm facing a strange issue since I upgraded from Nginx 1.6.2 to 1.8.0. My > configuration files have been kept identicals, as well as my official SSL > certificates. > > The problem is Nginx keeps on serving a self-si

Re: Execute python files with Nginx

2015-08-11 Thread Nitin Solanki
Thanks Shannon.. On Tue, Aug 11, 2015 at 11:23 PM Shannon Burns wrote: > Hi Nitin, > > If you are looking for a tutorial on how to get a python application up > and running with NGINX check out this tutorial: > > > https://www.digitalocean.com/community/tutorials/how-to-set-up-uwsgi-and-nginx-to

Re: Execute python files with Nginx

2015-08-11 Thread Shannon Burns
Hi Nitin, If you are looking for a tutorial on how to get a python application up and running with NGINX check out this tutorial: https://www.digitalocean.com/community/tutorials/how-to-set-up-uwsgi-and-nginx-to-serve-python-apps-on-ubuntu-14-04

Re: Nginx & Digest authentication

2015-08-11 Thread Maxim Dounin
Hello! On Tue, Aug 11, 2015 at 01:49:37PM +, Arun John (arujohn) wrote: > The “get” requests were failing and nginx was not forwarding the headers > required for the authentication. The result was same as before. I have > shared the configs. May be I am missing some minor configurations? Ple

Re: Execute python files with Nginx

2015-08-11 Thread Nitin Solanki
Hi Daniel, I am not using Django. I am using core python files. Is it possible with it? On Tue, Aug 11, 2015 at 6:21 PM, Daniel Theodoro wrote: > Hi Nitin, > > If you're using django you can follow these steps: > > > https://www.digitalocean.com/community/tutorials/how-to-serve

Nginx serving self-signed cert instead of the one defined in conf

2015-08-11 Thread Arno0x0x
Hello, I'm facing a strange issue since I upgraded from Nginx 1.6.2 to 1.8.0. My configuration files have been kept identicals, as well as my official SSL certificates. The problem is Nginx keeps on serving a self-signed certificate (dunno where it takes it from) instead of my proper certificates

Re: Nginx & Digest authentication

2015-08-11 Thread Arun John (arujohn)
Hi Edho, The “get” requests were failing and nginx was not forwarding the headers required for the authentication. The result was same as before. I have shared the configs. May be I am missing some minor configurations? When I switch the nginx off and directly access the application, everything w

Re: Nginx & Digest authentication

2015-08-11 Thread Edho Arief
On Tue, Aug 11, 2015 at 10:29 PM, Arun John (arujohn) wrote: > Hi, > > Thanks for the suggestion. I tried using proxy_pass, but it didn¹t help > much. > I think it would help if you explain the problem in more detail than just "didn't help much". ___ n

Re: Nginx & Digest authentication

2015-08-11 Thread Arun John (arujohn)
Hi, Thanks for the suggestion. I tried using proxy_pass, but it didn¹t help much. Please find my settings upstream my_backend { server 127.0.0.1:8083; } location / { proxy_pass http://my_backend; proxy_set_header Host $host; proxy_set_header

Re: Nginx & Digest authentication

2015-08-11 Thread Maxim Dounin
Hello! On Tue, Aug 11, 2015 at 03:35:19AM +, Arun John (arujohn) wrote: > I have a NGINX that sits in front of my application. I have > digest authentication enabled for the application. I’d like a > set up where when a user connects to NGINX using Digest, NGINX > simply proxies this reque

Re: Execute python files with Nginx

2015-08-11 Thread Daniel Theodoro
Hi Nitin, If you're using django you can follow these steps: https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-14-04 Daniel Theodoro Cel: 11 99399-3364 http://www.linkedin.com/in/danieltheodoro • RHCA - Red Hat Certified Architect •

Re: Proxy non persistent client connections to persistent upstream connections

2015-08-11 Thread Maxim Dounin
Hello! On Mon, Aug 10, 2015 at 08:18:41AM +, Richard Jennings wrote: > I would like to be able to proxy non persistent client http connections to > persistent upstream connections on a Linux system, both to reduce the > number of connections and the upstream latency. > > I have experimented

Re: proxy_set_header concatenated value

2015-08-11 Thread Francis Daly
On Mon, Aug 10, 2015 at 11:24:00PM -0700, Igal @ Lucee.org wrote: Hi there, > I want to pass the following header to the backend server: > > name: X-Original-URL > value: $scheme://$host$request_uri > > but the concatenation of the values for the value above do not seem to work. Why

Re: Redirect from HTTP to HTTPS does not work

2015-08-11 Thread Francis Daly
On Tue, Aug 11, 2015 at 02:53:21AM -0400, StSch wrote: Hi there, > This is my configuration: > > server { > listen 80; > server_name shell.*; > return 301 https://$server_name$request_uri; > } When you request "http://shell.example.com/uri";, this will redirect to "https://shell.*/uri";,

Re: Odd server_name directive behavior

2015-08-11 Thread Valentin V. Bartenev
On Monday 10 August 2015 18:13:53 CJ Ess wrote: > I have an nginx 1.9.0 deploy and I noticed a working config where the name > given to the server_name directive doesn't match the names in the Host > headers or the certificate DNs. It looks like a mistake, but it works, and > I don't know why! Is i