Re: auth_request and fastcgi_pass can't use var? And what should I do ?
I've solved this with location ~ '^/el/(?<tk>.+)/(?<tail>php/\d/[\w+/\.-=_]+)?$' { set $auth_request_uri "http://127.0.0.1:10101/auth/$tk"; auth_request /auth; autoindex on; alias...
View Articlenginx phishing, clon web
Hi, I can not solve a problem. They are phishing me with my server. My website: https://www.bitspiele.de/spiele/simple-search Use Nginx and php 7.2 with plesk updated all ... The fact is that I cloned...
View ArticleConnection through Vpn
Hi, Ive been pulling my hair out with this so thought i might ask around. Ive also not been able to find much by googleing . So does anybody know how to access services through nginx reverse proxy when...
View ArticleNginx valid_referers with "none" option disable hotlinking protection
This is my code: valid_referers none blocked *.alloweddomain.com; if ($invalid_referer){ return 403; } } The hotlinking doesnt work. But this works fine: valid_referers blocked *.alloweddomain.com; if...
View ArticleStuck with Proxy_Pass - help needed
Hello I have setup a proxy pass to point a URL to an internal web server which uses a self signed certificate. I have a DNS entry point my URL "wifi.example.com" to my nGINX server 172.28.6.131 I have...
View ArticleProxy_pass redirect suffix
Good Morning. I have a problem to use the reverse proxy in nginx. I need it to work this way: test.example.com -> proxy_pass localhost: 8080 / test test1.example.com -> proxy_pass localhost: 8080...
View ArticleReact / Kestrel settings for admin folder
Hello, I'm trying to setup new location rule for the "admin" folder for my reactjs SPA application. It uses Kestrel as a web server and Nginx as a proxy. I have already one configuration, which is...
View ArticleReverse proxy, tls mutual authentication client list
Hi We plan to use nginx to control access from IoT devices connecting to a server HTTP(S)/REST interface over TLS. We want to use client certificates stored on the IoT devices to do TLS mutual...
View Articlecustom log_format not inherited by server block
Hello. I am compiling Nginx 1.14.0 from source with a view to compiling ipscrub as a dynamic module. My compile completes without error, my nginx.conf validates, Nginx runs as expected, yet my server...
View ArticleRe: nginx as reverse proxy with client ssl authentication
maybe if you're interested in the solution: theres really nothing helpful in this logs. After doing a traffic capture together with the backend provider, following was figured out. Our Client Cert was...
View Articleexception in location
I use this to deny access to wp-login.php location ~ /wp-login.php$ { deny all; } However, I want to add an exception and allow it only if it contains "itsec-hb-token", I.e....
View ArticleBasic question about single entry point - why my solution actually *works*?
Hi. I'm a newbie - started playing with nginx in the last days. I'm trying to make a front controller (single entry point), i.e. . all the requests to non existing files/dirs should be forwarded to...
View ArticleRe: Basic question about single entry point - why my solution actually *works*?
Well, I'll answer myself. It seems that the sentence "and only one location block will ever be run" is a bit not precise, because nginx obviously can run more locations if we do any kind of 'rewrite',...
View Articlestatic file server recursively redirect to index.html
nginx version: nginx/1.0.15 I have configed a static file server. conf: location /strategy/ { root /www; } under the directory /www/strategy, there is a file named date.txt. which content is: Tue May...
View ArticleSet FastCGI response header in logs
Hello, I'va a FastCGI application that authenticates users and set username in a "Lm-Remote-User" header. I'm trying to set username in nginx logs: log_format lm_combined '$remote_addr - $lmremote_user...
View ArticleRe: Set FastCGI response header in logs
Note that I tried also $upstream_lm_remote_user and $upstream_http_lm_remote_user
View ArticleRe: Set FastCGI response header in logs
Succeed using directly it : log_format lm_app '$remote_addr - $upstream_http_lm_remote_user [$time_local]...
View ArticleAccess Proxmox containers via Nginx proxy_pass
Hello, I have three Proxmox containers, one of them is nginx to act as redirection to other two containers. http redirection to both containers works fine. I'm stuck with https (openssl). Now I have...
View ArticleIssue with the TCP Load Balancing
Dear all, I am the beginner with NGINX load balancing and i am facing with the problem. In detail, I set the upstream servers as the Mosquitto service which is running on port 6677 . There are 2...
View Article