Just to add to this, despite having compiled it inside a freshly downloaded folder of nginx 1.18.0, somehow it seems the modules were compiled with 1.16.1? How does this happen? # nginx -t nginx: module "/usr/share/nginx/modules/ngx_http_security_headers_module.so" version 1016001 instead of 1018000 in /etc/nginx/nginx.conf:16 nginx: configuration file /etc/nginx/nginx.conf test faiby pk899 - Nginx Mailing List - English
Thank you. So I tried this. It's not as straightforward as it sounds. Many issues with the ./configure step. If I include the "nginx -V" compile options from my dnf repo install, it gives this stuff below, to which I add the "--add-compat" with the modules to add (last four lines)-- ../configure --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64by pk899 - Nginx Mailing List - English
Perfect. This is clear Thomas. Much appreciated...between Miguel's original pointer and this clarity from you I think it solves what I'm looking for. One last question: the `nginx -T` options...I'll add those to the ../configure command, yes? On Wed, Jan 6, 2021 at 10:55 PM Thomas Ward <teward@thomas-ward.net> wrote: > This is where **manually compiling by hand** is the problem. Youby pk899 - Nginx Mailing List - English
Thank you Thomas. Much appreciate this, it sounds promising. Appreciate your clarity. So if I: 1. Compile nginx via `dnf install nginx` and that becomes my system's Nginx, installed usually in `/etc/nginx` 2. In a totally separate folder, say, `/usr/src`, I then download a tarball of Nginx and compile it along with the dynamic modules -- which will produce the .so files for said modules 3. Copby pk899 - Nginx Mailing List - English
Thank you Miguel. But you misunderstood the question. This suggestion... > nginx blog as a great guide on it though > https://www.nginx.com/blog/compiling-dynamic-modules-nginx-plus/ > > ....misses the very first question in this thread: we cannot compile nginx from source on our server. At least not in a way that that compiled version would become the nginx installed in our *systby pk899 - Nginx Mailing List - English
Thanks Miguel. Is there a simple official guide with precise instructions that shows all these modules being installed? Couldn't find it. Thanks! On Tue, Jan 5, 2021 at 8:20 PM Miguel C <miguelmclara@gmail.com> wrote: > AFAIK you would need the modules built with the same nginx version, so if > they are not available via packages I'm afraid you still need to build... > > _____by pk899 - Nginx Mailing List - English
We have a limitation on the server to only install Nginx via DNF. This currently (as of this date of writing) installs Nginx v1.18.0. We cannot compile our own Nginx. I understand that with this we cannot install "static modules" because that requires the whole of Nginx to be reinstalled. But I'd like to check how we can install the dynamic modules https://docs.nginx.com/nginx/admin-guiby pk899 - Nginx Mailing List - English
Any ideas at all? Thanks.by pk899 - Nginx Mailing List - English
Hi. There are many code samples on the web for simple hotlinking. I have some questions on how to do this in a better way, and all my trial code has not worked, so hope some Nginx guru here can help. Here's what I am looking for: 1. Firstly, I would like the blocking to happen at a server-wide level. Nginx is on a dedicated server, and there are many "server" vhost tags in aby pk899 - Nginx Mailing List - English
pk899 Wrote: ------------------------------------------------------- > Alexander Kolesen Wrote: > -------------------------------------------------- > ----- > .... > > in your location section with 'proxy_pass' > > directive > > (or 'fastcgi_pass' or whatever you use). > > > > Like the following: > > > > location / { > &gby pk899 - Nginx Mailing List - English
Alexander Kolesen Wrote: ------------------------------------------------------- .... > in your location section with 'proxy_pass' > directive > (or 'fastcgi_pass' or whatever you use). > > Like the following: > > location / { > .... > proxy_pass > http://<backend_ip>:<backend_port>; > proxy_set_headerby pk899 - Nginx Mailing List - English
Hi. Nginx 1.0.8 proxying to Apache 2. My version of PHP is 5.3.8, but that's irrelevant I suppose. Nginx is with Real IP module. I have the following in my conf file: set_real_ip_from 192.168.1.0/24; set_real_ip_from 192.168.2.1; set_real_ip_from 127.0.0.1; set_real_ip_from [..my server ip..]; real_ip_header X-Real-IP; Apache is also with module RPAF. And there'sby pk899 - Nginx Mailing List - English
I have googled and searched through this forum. But this syntax in the config file does NOT help: # recursive_error_pages on; error_page 403 404 500 502 503 504 /error.htm; It works sometimes, but often it just shows me the stock Nginx page. How do I avoid this once and for all, or is this impossible?by pk899 - Nginx Mailing List - English
Hi. I had 1.0.8. I just now downloaded 1.0.9 stable. Did the configure, make, make install. Then restarted nginx. When I do "nginx -v", it still shows me 1.0.8!! What am I missing? Is there a step before "configure"? Also, should I just stick with 1.0.9 or should I go to 1.1.7? What's the performance difference?by pk899 - How to...
Hi. Hope someone can help me. I have nginx/1.0.4 version installed. I need to now install "Real IP" module. Is there a way to install just this module "incrementally", without reinstalling the whole thing again? Thanks!by pk899 - How to...
Looks interesting. I have downloaded and unzipped it. Now what? The github page doesn't even have any instructions. How do I make sure it gets installed and then found by nginx? thanks!by pk899 - Nginx Mailing List - English
Been trying to find info about this, but the best I could find is some python binary to use in the SSH shell. I'm looking for a programmatic way -- ideally in PHP -- to manually invalidate certain items from the proxy cache. Is this possible? Thanks for any ideas!by pk899 - Nginx Mailing List - English
Below is my config. The folder /site/private is supposed to show the usual HTTP authentication box, but the php files from that folder just start downloading in clear text. What am I doing wrong? The path of the passwd file is correct. Thanks for any pointers! location / { location ~.*\.(gif|jpg|png|ico|swf|rss|xml|htm|txt|js|css|gz|doc|xls|pdf)$ { expiresby pk899 - Nginx Mailing List - English
Cliff, thanks for this, but wouldn't that redirect the page before setting the cookie?by pk899 - Nginx Mailing List - English
pk899 Wrote: ------------------------------------------------------- > Hi. nginx is proxying to apache. Everything works. > > > Except cookies. My php pages seem just not to be > able to set cookies! > > Is there any specific directive that I should > watch out for? > > Could proxy_cache stuff be interfering with it > maybe? > > My nginxby pk899 - Nginx Mailing List - English
Hi. nginx is proxying to apache. Everything works. Except cookies. My php pages seem just not to be able to set cookies! Is there any specific directive that I should watch out for? Could proxy_cache stuff be interfering with it maybe? My nginx.conf file is here: http://tinypaste.com/18331 My proxy.inc file is here: http://tinypaste.com/a499c Silly question: I am passingby pk899 - Nginx Mailing List - English
Wow, sorry, I feel stupid. I commented that line and now it works. Thanks!!by pk899 - Nginx Mailing List - English
Yes I have this: proxy_ignore_headers Cache-Control Expires; Is this why this is happening?by pk899 - Nginx Mailing List - English
Hi, from the documentation I understand that proxy_cache will NOT be activated for pages that have pragma to "no-cache" or Cache-control to "no-cache", or even Expires to an old date. I have the following in my Location settings: proxy_cache_bypass $http_pragma $http_authorization; proxy_no_cache $http_pragma $http_authorization; Andby pk899 - Nginx Mailing List - English
Thanks appa, for bearing with me. Yes, the VirtualHost config also needs the port to change. I had only changed the "Listen" port in apache. It works now, and splendidly! Thanks!by pk899 - Nginx Mailing List - English
Thanks appa. My question is: if the setup works with two ports, how come it stops working when the ports are switched? Anyway, my config: proxy_cache_path /dev/shm/proxy_cache levels=1:2 keys_zone=proxyone:10m inactive=10m max_size=100m; proxy_cache_key "$scheme$host$request_uri$cookie___user"; proxy_cache proxyone; proxy_cache_min_uses 1; pby pk899 - Nginx Mailing List - English
pk899 Wrote: ------------------------------------------------------- > i managed to get it all installed, but the php-fpm > and "location" stuff is just too difficult for > now. will deal with that later. > > right now, at least to gain from nginx serving > static files and some bits of proxy_cache, i did > this: > > 1. setup nginx on port 81 >by pk899 - Nginx Mailing List - English
i managed to get it all installed, but the php-fpm and "location" stuff is just too difficult for now. will deal with that later. right now, at least to gain from nginx serving static files and some bits of proxy_cache, i did this: 1. setup nginx on port 81 2. left apache on 80 (as my site is live) this worked. proxying was happening etc. then, to make it live, i did thiby pk899 - Nginx Mailing List - English
Sorry I was not clear. Yes I reran the ./configure --with-debug among other things, and then make and make install. Yes I only want to debug connections from that one IP, my IP. But even that is not working. The box is already a dev box. No one else is connecting to this server yet, as it's running on a non-80 port. Is there another way to debug?by pk899 - Nginx Mailing List - English
OK, I did this: 1. Rebuilt nginx with "with-debug" 2. Added another line to my nginx.conf: debug_connection MY IP ADDRESS; log_format combined2 '$remote_addr - $remote_user [$time_local] ' '"$request" $status $body_bytes_sent ' '"$http_referer" "$http_user_agent"'; error_log logs/error.log debuby pk899 - Nginx Mailing List - English