I am wondering if it is possible to compute some kind of hash value from ip address or do modulo operation on the last numeric value from ip address (for example on 24 given 172.16.4.24)? Based on this, I want to send the request to different endpoints (not to different servers). If this can be done without installing any new module, that would be the best. As far as I can see, I feel like I shby keeyong - Nginx Mailing List - English
I can't really test this easily so I am asking instead. I have this location statement in my nginx.conf: location ~* ^/(api/abcd)/ { ... } Now I want to match against "api/efgh". Then the regex should be something like this? location ~* ^/(api/(abcd|efgh))/ { ... } OR location ~* ^/api/(abcd|efgh)/ {by keeyong - Nginx Mailing List - English
Good to know. I don't have the module installed though. But I will keep that in mind. Thanks!by keeyong - Nginx Mailing List - English
Thanks Maxim for the confirmationby keeyong - Nginx Mailing List - English
I have a custom header in http response and it can appear more than once. Let's say it is called x-extra. In my nginx configuration, I want to extract all of its values and log them together but I found it is always extracting the very first one. Is it possible to do this somehow? Thanks in advance! -Kby keeyong - Nginx Mailing List - English
I am using ngixing as a reverse proxy in front of apache (PHP) as a load balancer and a logger. For some endpoints, I want to log their POST bodies and I looked up the Web and found some solution requiring to install HttpEchoModule. Is there any other way of achieving this? Preferably without installing any new module?by keeyong - Nginx Mailing List - English
Is there a way to list all plugins installed in my nginx? I am particularly interested in knowing whether HttpEchoModule is installed or not.by keeyong - Nginx Mailing List - English
Thanks. That was it!by keeyong - Nginx Mailing List - English
I am using nginx as a reverse proxy and am trying to log some variables set by apache to nginx log. So certain HTTP response headers are set by apache (PHP) and then I log them successfully with $sent_http_* variables. But then I don't want the info to be exposed to outside world so I tried to remove them by adding "proxy_hide_header". What happened is that it actually makes the variaby keeyong - Nginx Mailing List - English