Re: uwsgi problems

2014-10-09 Thread Roberto De Ioris
> -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 10/09/2014 12:49 PM, Greg Barker wrote: >> Option #2 should work, here's what I have for my uwsgi site. >> Double check your permissions on the directory the uwsgi.sock lives >> in. >> >> My nginx conf: location / { uwsgi_pass >> unix:///var

If-Modified-Since and If-None-Match conditionals with X-Accel-Redirect responses ?

2014-10-09 Thread Tom Lanyon
We've got an upstream returning X-Accel-Redirect responses to an internal location (which itself proxies to another upstream). Something like: upstream fileserver { server foo; } upstream backend { server bar; } server {

[ANN] OpenResty 1.7.4.1 released

2014-10-09 Thread Yichun Zhang (agentzh)
Hi folks! I am happy to announce the new formal release, 1.7.4.1, of the OpenResty bundle: http://openresty.org/#Download The highlights of this release are 1) the new "resty" command-line utility, 2) SSL/TLS cosocket support in ngx_lua (with SNI support and client-side session reu

Re: uwsgi problems

2014-10-09 Thread Greg Barker
Shouldn't matter that you don't have a www-data user, that just happens to be the one I am using. I am running uwsgi in emperor mode so my worker processes have that uid $ ps aux | grep uwsgi root 798 0.0 0.0 31748 2296 ?Ss Sep29 0:24 /var/www/my_app/my_virtualenv/bin/uwsgi -

Re: uwsgi problems

2014-10-09 Thread Steven Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/09/2014 12:49 PM, Greg Barker wrote: > Option #2 should work, here's what I have for my uwsgi site. > Double check your permissions on the directory the uwsgi.sock lives > in. > > My nginx conf: location / { uwsgi_pass > unix:///var/www/my_app/m

Nginx error : open failed 2 no such file or directory

2014-10-09 Thread Mapper Uno
Hi, I've written a small nginx module that serves files (with some extra functionality). When I access the files through HTTP POST, I get below error [error] 2971#0: *184 open() "/home/user/build/default/main/nginx/extern-nginx-prefix/nginx/html/1/3/49123876" failed (2: No such file or director

Re: Reverse TLS proxy

2014-10-09 Thread paucorre
Single nic deployed, the solution of Justin worked. Thank you, Paulo Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253833,253873#msg-253873 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: uwsgi problems

2014-10-09 Thread Greg Barker
Option #2 should work, here's what I have for my uwsgi site. Double check your permissions on the directory the uwsgi.sock lives in. My nginx conf: location / { uwsgi_pass unix:///var/www/my_app/my_virtualenv/run/uwsgi.sock; include uwsgi_params; } Directory permissions: $ ls -la /var/ww

Re: Reverse TLS proxy

2014-10-09 Thread paucorre
Single nic deployed, the solution of Justin worked. Thank you, Paulo Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253833,253872#msg-253872 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Reverse TLS proxy

2014-10-09 Thread paucorre
Correct Justin.. beginners mistake . disabled the firewalld but forgot selinux ... I install it in CentOS 7.0. Do you know how to troubleshoot it when sometimes the proxy doesn't go through and other times works ?? Paulo Posted at Nginx Forum: http://forum.nginx.org/read.php?

uwsgi problems

2014-10-09 Thread Steven Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have been trying to get nginx to talk to uwsgi to no avail. uwsgi works by itself as I can host it on port 80 on my local machine with no problems. I have tried configuring nginx with the following variations: # option 1 location / { include uws

Re: [nginx module] Save response into temp file

2014-10-09 Thread hungnguyen
Hello, Sorry for my late replay. Now I can be able to write file into disk and read from it without problem (csv file) by using this: ngx_temp_file_t *tf; tf = ngx_pcalloc(r->pool, sizeof (ngx_temp_file_t)); tf->file.fd = NGX_INVALID_FILE; tf->file.lo

Re: access logs hang

2014-10-09 Thread Lorenzo Raffio
Thanks for the reply. I compiled nginx from source, 1.7.5. I'm on Ubuntu 14.04. I know there's a log rotation function built-in but I prefer to work things out by myself. :DSo I created this script to automatically rotate my logs:find /var/www/ -ipath */logs/access.log.gz -execdir mv "{}" "old/`

Re: Access logs hang

2014-10-09 Thread B.R.
Btw, using the nginx packages automatically configure stuff to run out of the box, including the (r)syslog rotation configuration. Here is an insight of the nginx log rotation configuration file: https://unix.stackexchange.com/questions/106280/what-does-this-logrotate-nginx-config-do If you are us