Re: modules after upgrade

2024-02-04 Thread Larry Martell
On Thu, Feb 1, 2024 at 2:03 PM J Carter wrote: > > Hello, > > On Thu, 1 Feb 2024 12:28:40 -0500 > Larry Martell wrote: > > > On Thu, Feb 1, 2024 at 11:57 AM Sergey A. Osokin > > wrote: > > > > > > Hi Larry, > > > > > > On Thu,

Re: nginx looking in wrong dir for module

2024-02-04 Thread Larry Martell
On Fri, Feb 2, 2024 at 8:43 PM Maxim Dounin wrote: > > Hello! > > On Fri, Feb 02, 2024 at 01:07:40PM -0500, Larry Martell wrote: > > > I built nginx from source and it fails to start with: > > > > 2024/02/02 13:00:59 [emerg] 1961284#1961284: dlopen() > > &

nginx looking in wrong dir for module

2024-02-02 Thread Larry Martell
I built nginx from source and it fails to start with: 2024/02/02 13:00:59 [emerg] 1961284#1961284: dlopen() "/usr/modules/ndk_http_module.so" failed (/usr/modules/ndk_http_module.so: cannot open shared object file: No such file or directory) in /etc/nginx/modules-enabled/10-mod-http-ndk.conf:1 -V

Re: modules after upgrade

2024-02-01 Thread Larry Martell
On Thu, Feb 1, 2024 at 1:28 PM Sergey A. Osokin wrote: > > On Thu, Feb 01, 2024 at 01:10:35PM -0500, Larry Martell wrote: > > > > I had already done all that. (Those instructors are the same as the > > page I initially referenced, > > https://docs.nginx.com/ngin

Re: modules after upgrade

2024-02-01 Thread Larry Martell
On Thu, Feb 1, 2024 at 12:48 PM Sergey A. Osokin wrote: > > Hi Larry, > > On Thu, Feb 01, 2024 at 12:28:40PM -0500, Larry Martell wrote: > > > > I was able to install nginx-module-image-filter with apt, but > > http-xslt-filter, mail, stream all fail with the s

Re: modules after upgrade

2024-02-01 Thread Larry Martell
On Thu, Feb 1, 2024 at 11:57 AM Sergey A. Osokin wrote: > > Hi Larry, > > On Thu, Feb 01, 2024 at 11:34:08AM -0500, Larry Martell wrote: > > We run Ubuntu 20.04, which has nginx 1.18. I was asked to upgrade it > > to 1.25.3, which I did following the instructions here: &g

modules after upgrade

2024-02-01 Thread Larry Martell
We run Ubuntu 20.04, which has nginx 1.18. I was asked to upgrade it to 1.25.3, which I did following the instructions here: https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-open-source/. We had 6 modules installed (http-ndk, http-image-filter, http-lua, http-xslt-filter,

Logging response body

2023-06-02 Thread Larry Martell
Is there a way to have nginx log the response body? ___ nginx mailing list nginx@nginx.org https://mailman.nginx.org/mailman/listinfo/nginx

Re: 504 timeout

2020-05-12 Thread Larry Martell
On Tue, May 12, 2020 at 12:55 PM Norman Gray wrote: > > > Larry, hello. > > On 12 May 2020, at 16:33, Larry Martell wrote: > > > There can be cases when a > > request from a user does not come back from the db for 15-20 minutes. > > This is expected as it

Re: 504 timeout

2020-05-12 Thread Larry Martell
On Tue, May 12, 2020 at 11:33 AM Larry Martell wrote: > > I have a django app using nginx and uwsgi. There can be cases when a > request from a user does not come back from the db for 15-20 minutes. > This is expected as it's calling a stored proc that does a lot and > thi

504 timeout

2020-05-12 Thread Larry Martell
I have a django app using nginx and uwsgi. There can be cases when a request from a user does not come back from the db for 15-20 minutes. This is expected as it's calling a stored proc that does a lot and this is an internal app. Issue is that after some amount of time I get a 504 timeout error -

Re: Deploying django, channels and websockets with nginx and daphne

2020-02-27 Thread Larry Martell
On Wed, Feb 26, 2020 at 6:39 PM Francis Daly wrote: > > On Wed, Feb 26, 2020 at 05:55:02PM -0500, Larry Martell wrote: > > Hi there, > > > upstream django { > > server unix:/run/daphne/devAppReporting.sock; > > } > > > > server { &g

Deploying django, channels and websockets with nginx and daphne

2020-02-26 Thread Larry Martell
I've posted this to the django mailing list and to stack overflow, with no replies so trying here. I am trying to deploy a django app that uses channels and websockets, with nginx and daphne. When I was using uwsgi, here was my nginx file: upstream django { server unix:/run/uwsgi/devAppR

Re: intermittent No module named context_processors when using nginx/uwsgi

2019-01-05 Thread Larry Martell
t > have different configuration? > > > > On Jan 5, 2019, at 13:01, Larry Martell wrote: > > > > I am having an odd interment django problem. I have an app which is > > deployed at 30 different sites, some with apache and wsgi and some > > with nginx a

intermittent No module named context_processors when using nginx/uwsgi

2019-01-05 Thread Larry Martell
I am having an odd interment django problem. I have an app which is deployed at 30 different sites, some with apache and wsgi and some with nginx and uwsgi. At only the nginx/uwsgi sites and only intermittently, users will get the error No module named context_processors. I am only posting it here

Re: nginx and uwsgi in docker in vagrant in vmware - Permission denied on socket

2017-08-20 Thread Larry Martell
I found that copying the static files to /var/run (and changing the nginx config) fixed this. On Sun, Aug 20, 2017 at 9:52 AM, Larry Martell wrote: > I changed the socket to be in /var/run and that fixed the issue. But > now I am getting a 403 on all the static files, e.g: > > 2017

Re: nginx and uwsgi in docker in vagrant in vmware - Permission denied on socket

2017-08-20 Thread Larry Martell
, request: "GET /static/scripts/bootstrap.min.js HTTP/1.1", host: "localhost:9003", referrer: "http://localhost:9003/"; Any ideas on that? On Sat, Aug 19, 2017 at 7:33 PM, Larry Martell wrote: > Inside the docker container the dir is /opt/django/CAPgraph/. > >

Re: nginx and uwsgi in docker in vagrant in vmware - Permission denied on socket

2017-08-19 Thread Larry Martell
t type of file. > > Place the socket somewhere else (like /var/run/aoo.sock). > > Cheers, > > Guilherme Capilé > > On Sat, Aug 19, 2017 at 4:59 PM, Larry Martell > wrote: >> Don't ask why, but on my mac I am running Windows Server 2016 in >> VMware.

nginx and uwsgi in docker in vagrant in vmware - Permission denied on socket

2017-08-19 Thread Larry Martell
Don't ask why, but on my mac I am running Windows Server 2016 in VMware. In there I am running Ubuntu in vagrant/Virtual Box. In there I am trying to run a django app in a docker container with nginx/uwsgi. The socket is being created, but then when I try and connect to the site it fails with this

Re: threads don't run after request returns?

2017-04-07 Thread Larry Martell
On Fri, Apr 7, 2017 at 2:53 PM, Larry Martell wrote: > I have a django app that I serve with nginx. Some requests that the > app receives start python threads that are not complete when the > request returns a response to the client. When I run with the django > devel server the thre

threads don't run after request returns?

2017-04-07 Thread Larry Martell
I have a django app that I serve with nginx. Some requests that the app receives start python threads that are not complete when the request returns a response to the client. When I run with the django devel server the threads continue to run to completion. But when I run with nginx it seems that t

Re: debugging 504 Gateway Time-out

2016-08-14 Thread Larry Martell
right? But I get the 504 response before 10 minutes have passed since the request is sent. Why is that? > > On Tue, Aug 9, 2016 at 11:09 PM, Larry Martell > wrote: >> >> I just set up a django site with nginx and uWSGI. Some pages I go to >> work fine, but other fail with a

debugging 504 Gateway Time-out

2016-08-09 Thread Larry Martell
I just set up a django site with nginx and uWSGI. Some pages I go to work fine, but other fail with a 504 Gateway Time-out. I used to serve this site with apache and wsgi and these same pages worked fine. This is what I see in the nginx error log: 2016/08/09 16:40:19 [error] 17345#0: *1 upstream

Re: listening but not connecting

2016-07-29 Thread Larry Martell
On Fri, Jul 29, 2016 at 3:58 AM, Francis Daly wrote: > On Thu, Jul 28, 2016 at 10:13:30PM -0400, Larry Martell wrote: > Does "iptables -L -v -n" show anything interesting? You said that you > disabled the firewall, so it probably is empty. I am on Centos7 which uses firewal

Re: listening but not connecting

2016-07-28 Thread Larry Martell
On Thu, Jul 28, 2016 at 3:52 PM, Francis Daly wrote: > On Thu, Jul 28, 2016 at 03:01:17PM -0400, Larry Martell wrote: > > Hi there, > >> netstat shows that nginx is listening on port 80: >> >> tcp0 0 0.0.0.0:80 0.0.0.0:* >> LISTEN

Re: listening but not connecting

2016-07-28 Thread Larry Martell
On Thursday, July 28, 2016, Pratyush Kumar wrote: > Can you please share the address which you are using in browser. > > According to the config which you shared, you will get a response only if > you use localhost as URL in browser > I am connecting from the outside to the public IP of the mach

listening but not connecting

2016-07-28 Thread Larry Martell
Trying to set up nginx and uwsgi for django. Following the directions here: https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-centos-7 netstat shows that nginx is listening on port 80: tcp0 0 0.0.0.0:80 0.0.0.0:* L

Re: checking headers

2016-06-01 Thread Larry Martell
On Tue, May 31, 2016 at 7:06 PM, Francis Daly wrote: > On Tue, May 31, 2016 at 04:48:19PM -0400, Larry Martell wrote: >> On Tue, May 31, 2016 at 4:19 PM, Francis Daly wrote: >> > On Tue, May 31, 2016 at 12:33:56PM -0400, Larry Martell wrote: > > Hi there, > >>

Re: checking headers

2016-05-31 Thread Larry Martell
On Tue, May 31, 2016 at 4:19 PM, Francis Daly wrote: > On Tue, May 31, 2016 at 12:33:56PM -0400, Larry Martell wrote: >> On Tue, May 31, 2016 at 11:38 AM, Francis Daly wrote: >> > On Tue, May 31, 2016 at 10:26:26AM -0400, Larry Martell wrote: > > Hi there, > >>

Re: checking headers

2016-05-31 Thread Larry Martell
On Tue, May 31, 2016 at 11:38 AM, Francis Daly wrote: > On Tue, May 31, 2016 at 10:26:26AM -0400, Larry Martell wrote: >> On Tue, May 31, 2016 at 9:45 AM, Francis Daly wrote: > > Hi there, > >> > Possibly one of them covers what you want? >> >> There are

Re: checking headers

2016-05-31 Thread Larry Martell
On Tue, May 31, 2016 at 9:45 AM, Francis Daly wrote: > On Tue, May 31, 2016 at 09:23:36AM -0400, Larry Martell wrote: >> On Tue, May 31, 2016 at 7:55 AM, Larry Martell >> wrote: >> >>> On Sat, May 28, 2016 at 12:48 PM, Larry Martell >> >>> wrote:

Re: checking headers

2016-05-31 Thread Larry Martell
On Tue, May 31, 2016 at 7:55 AM, Larry Martell wrote: > On Tue, May 31, 2016 at 7:41 AM, Larry Martell > wrote: >> On Mon, May 30, 2016 at 2:19 PM, Robert Paprocki >> wrote: >>> >>> >>> On Sat, May 28, 2016 at 12:48 PM, Larry Martell >>> w

Re: checking headers

2016-05-31 Thread Larry Martell
On Tue, May 31, 2016 at 7:41 AM, Larry Martell wrote: > On Mon, May 30, 2016 at 2:19 PM, Robert Paprocki > wrote: >> >> >> On Sat, May 28, 2016 at 12:48 PM, Larry Martell >> wrote: >>> >>> Is there any way with nginx to check a request's h

Re: checking headers

2016-05-31 Thread Larry Martell
On Mon, May 30, 2016 at 2:19 PM, Robert Paprocki wrote: > > > On Sat, May 28, 2016 at 12:48 PM, Larry Martell > wrote: >> >> Is there any way with nginx to check a request's headers and send back >> a 401 if the headers are not proper? > > > >

checking headers

2016-05-28 Thread Larry Martell
Is there any way with nginx to check a request's headers and send back a 401 if the headers are not proper? ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: error logging with nginx and uWSGI

2015-05-05 Thread Larry Martell
On Sun, May 3, 2015 at 8:18 AM, Maxim Dounin wrote: > Hello! > > On Fri, May 01, 2015 at 12:04:51PM -0400, Larry Martell wrote: > >> Prior to now, all the django projects I've worked on have used apache >> and WSGI. With those, when an error occurred I went to &g

error logging with nginx and uWSGI

2015-05-01 Thread Larry Martell
Prior to now, all the django projects I've worked on have used apache and WSGI. With those, when an error occurred I went to /var/log/httpd/error_log and details of the error were clearly there. Now for the first time I am working on a project using nginx and uWSGI. Here, the /var/log/nginx/error_

X-forward-for question

2014-05-06 Thread Larry
Hello, I plan to set up two servers for a training purpose : one frontend, one database. I created a tcp server but I need to be sure of the idea : Be F the frontend and B the backend. when a client will make a request, it will hit F first (nginx + https involved) then will ask B to process the

Re: ssl cache pooling ? (kind of)

2014-03-24 Thread Larry
I will try to code something. Should I put it back here if successful or not ? Anyway, thanks for your knowledge Maxim. Larry Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248588,248610#msg-248610 ___ nginx mailing list nginx@nginx.org

Re: ssl cache pooling ? (kind of)

2014-03-24 Thread Larry
Thanks Maxim, I will investigate it and get my results here. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248588,248614#msg-248614 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: ssl cache pooling ? (kind of)

2014-03-23 Thread Larry
Yep, Missed that -big- one. Failed idea. Many example show how to loadbalance ssl without problems like lvs, haproxy http://virtuallyhyper.com/2013/05/configure-haproxy-to-load-balance-sites-with-ssl/ So, Am I basically creating an imaginary problem ? And if so, why ssl ticket (rfc 5077) even

ssl cache pooling ? (kind of)

2014-03-22 Thread Larry
Hello, I would like to know if we could replicate the shared memory over multiple servers. One cannot reliably use the new ticket system since not all webbrowsers support this. My idea is to modify the ngx_shared_memory_add function to add a rpc stack to it. We would write down the upstream ser

Does $remote_port has to change when streaming ?

2014-02-17 Thread Larry
Hello ! I tried but cannot trust myself (and what I tried) : when streaming / playing video in the client browser, does the client's port ($remote_port) may change ? in the logs when configuring remote_port I believe that if the connection is dropped, another port will be assigned, but in case ev

Re: Mmm.. Subrequests anyone ?

2014-02-14 Thread Larry
Many thanks I will dig into it :) See you Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247521,247554#msg-247554 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Mmm.. Subrequests anyone ?

2014-02-13 Thread Larry
Hello ! I am not sure that I understood this sentence from http://www.aosabook.org/en/nginx.html : "However, nginx goes further—not only can filters perform multiple subrequests and combine the outputs into a single response, but subrequests can also be nested and hierarchical" It is pretty clea

Re: nginx -> Dns server ?

2014-02-01 Thread Larry
:) Thanks you all Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247062,247076#msg-247076 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx -> Dns server ?

2014-01-31 Thread Larry
Maybe this will make it : https://github.com/agentzh/lua-resty-dns anyone ? Thanks Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247062,247071#msg-247071 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/ngi

nginx -> Dns server ?

2014-01-31 Thread Larry
clue/experience would be welcome :) Thanks, Larry Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247062,247062#msg-247062 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Dynamic ssl certificate ? (wildcard+ multiple different certs)

2014-01-09 Thread Larry
Thanks, I changed my strategy : one file programmatically modified and added to the site-enabled folder like that everything runs fine and I keep being able to meet my requirement of one root ca per client. Many thanks all of you Bye Posted at Nginx Forum: http://forum.nginx.org/read.php?2,2

Re: Dynamic ssl certificate ? (wildcard+ multiple different certs)

2014-01-09 Thread Larry
Thanks, I left the cookies out of this context right now I understand. But since there is a http request first why doesn't nginx is able to switch to the right certificate accordingly ? Without obliging me to create a new entry for each (which is the route I am going to take)? Posted at Nginx F

Dynamic ssl certificate ? (wildcard+ multiple different certs)

2014-01-09 Thread Larry
Hello, Here is my current conf server { listen 443; server_name ~^(.*)\.sub\.domain\.com$ sslon; ssl_certificate$cookie_ident/$1.crt; ssl_certificate_key$cookie_ident/$1.key;

Re: Proxy_cache or direct static files ?

2013-12-20 Thread Larry
Makes sense Thanks Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245544,245752#msg-245752 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Proxy_cache or direct static files ?

2013-12-19 Thread Larry
Ok, Now I get it right :) @Maxim : when you say faster memory storage, doesn't nginx get the result cached by the os itself ? And so in the ram ? What could be faster than that ? Thanks Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245544,245721#msg-245721

Re: Proxy_cache or direct static files ?

2013-12-16 Thread Larry
Did i understand something wrong ? Thanks Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245544,245552#msg-245552 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Proxy_cache or direct static files ?

2013-12-15 Thread Larry
Hello, I don't quite understand what I could get from caching with proxy_cache vs serving static files directly. Everywhere people tend to say that it is better to cache, but isn't caching the same as serving directly from static file ? Say that I serve home.html from a plain static html file, w

Dynamic request rate throttling

2013-12-02 Thread Larry
clue ? thanks Larry Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245116,245116#msg-245116 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Nginx -> strategy ?

2013-05-12 Thread Larry
out-of-any-other-factors-involved question. Many thanks ! Larry Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239106,239106#msg-239106 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Reverse proxy and wireshark

2013-04-06 Thread Larry
Thank you both of you, I admit I started worrying on the basis of wrong information/comprehension. Now it is ok, and I can keep up my nginx config with the x-accel variables. Thanks again, and sincerely sorry I bothered you for such thing. Regards, Larry Posted at Nginx Forum: http

Re: Reverse proxy and wireshark

2013-04-06 Thread Larry
Reassuring but everywhere on the web, you can see wireshark sniffing in/out packet to any server. Hence, they are not connected to the server to sniff packets. That is why I started worrying actually ! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,238162,238166#msg-238166 __

Re: Reverse proxy and wireshark

2013-04-06 Thread Larry
My concern is that a hacker is able to know my other ips over europe. My host is not a problem. The real deal is the outgoing packets I don't want external people to know where they are going to. It would defeat the whole purpose of reverse proxy.. Posted at Nginx Forum: http://forum.nginx.org/

Reverse proxy and wireshark

2013-04-06 Thread Larry
that would help there ? Thanks ! Larry Posted at Nginx Forum: http://forum.nginx.org/read.php?2,238162,238162#msg-238162 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Split words into caracters

2013-04-02 Thread Larry
You are right Reinis, It first seemed tough to me but yeah, it works :) Thanks, Larry Posted at Nginx Forum: http://forum.nginx.org/read.php?2,238015,238034#msg-238034 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo

Re: Why use haproxy now ?

2013-04-02 Thread Larry
Will you keep us in touch Reinis ? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237874,238033#msg-238033 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Split words into caracters

2013-04-02 Thread Larry
yeah but it works when you have multiple words. In my case, there is only one which is 1234567890...DEF (md5 -> 32 chars) And I would need the possibility to do m=1234567890...DEF m[1] = 1 m[2] = 2 .. m[32] = F A mere rewrite is impossible here.. It seems indeed, Larry Posted at Ng

Split words into caracters

2013-04-02 Thread Larry
ty, i didn't see any implementation inside nginx to split any word or cookie. C is faster than lua, so it would be a good bet. Well, I think. What is your word on it ? Thanks ! Larry Posted at Nginx Forum: http://forum.nginx.org/read.php?2,238015,238015#

Re: Why use haproxy now ?

2013-03-28 Thread Larry
Okay, You, as others did, gave really good reason why haproxy + varnish + nginx should be good together. But seems a real hassle to setup and maintain... Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237874,237911#msg-237911 ___ nginx mai

Re: Why use haproxy now ?

2013-03-28 Thread Larry
e to personalization. And if you can split this sub part to serve something general enough, then the time that it calls varnish to serve it, nginx alone would have already done half the way to serve the file. If in this scenario Haproxy performs significantly better, then I am in thirst of kn

Why use haproxy now ?

2013-03-28 Thread Larry
? Even Varnish.. nginx can cache too. Absolutely not a fanboy, just someone trying to understand different statements and why people want different layers when one seems enough. Thanks, Larry Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237874,237874#msg-237874

Re: max virtualhosts

2013-03-25 Thread Larry
Many thanks to both of you, you made my day :) Larry Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237702,237743#msg-237743 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

max virtualhosts

2013-03-23 Thread Larry
Hi ! I was wondering, for the sake of curiosity, how many server blocks (virtual hosts) nginx can afford ? To the extreme : will 1000 server blocks will decrease nginx performances ? Cheers, Larry Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237702,237702#msg-237702