rewrite specific files in specific folder only
Hello,I use this rewrite rules (rules not isolated in my vhosts declaration) to rewrite .jpg files with a distant server.location ~ /(.*).jpg$ {rewrite ^/pict/(.*).jpg$ /images/$1.jpg last;proxy_pass...
View ArticleRe: auth_request own error_page
I have done this by patching auth_request module to pass 441 and 443 custom http status codes throu, and then I defined "error_page 441 =401 /unauth.html" in nginx config. I make subrequest url to...
View Articlereverse proxy user-agent spoof
Hello -I have a need to set up a reverse proxy that will rewrite the user-agent so that all IE versions will be detected by the target website as MSIE 8.0.The reason: The target application should work...
View ArticleIs there a way to combine restriction by GeoIP and basic HTTP authentication?
Hello All!We can combine the restriction by IP addresses and the basic HTTP authentication by use of the satisfy directive. Is there a way to get the same effect if we want to use GeoIP instead of...
View Articlereverse proxy client certificate authentication
Hi,I'm looking for a reverse proxy that is able to forward client certificates to the backend. Is nginx capable of doing this?My situation:Client with personalized Certificate -> reverse proxy ->...
View ArticleRe: Proxy_protocol, how to check protocol or port (not only remote IP)
Can Somebody please shed some light on it. We are really in need of all the details of proxy protocol values.
View Articlehow to access my server from local network
hi.i installed nginx and i can access my website only from my PC.how to make to access website from another PC in my local network?
View ArticleRe: how to access my server from local network
not working for me#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;pid temp/nginx.pid;events {worker_connections 1024;}http...
View ArticleRe: how to access my server from local network
https://www.linode.com/docs/websites/nginx/basic-nginx-configurationScroll down to the listen examples.
View ArticleRe: how to access my server from local network
Actually read it, you are binding access to localhost only, which prevents other machines from accessing.
View ArticleRe: how to access my server from local network
english is not my mother-language so it hard to read all information on link you give,can u say to me what actually i need edit to access my website in local network??
View Articleremove redirect permanent
Hi all,Setup Nginx and all is working fine. However, in my testing I did a:if ($ssl_protocol = "") {rewrite ^ http://$host$request_uri? permanent;}and hit some URL's. As configured all http requests...
View Articleperl server
hello everyone, first of i want to say im a beginner, if there is a beginner-oriented tutorial would appreciate iti would like to run a perl server with nginx and fcgiwrapfollowed this tutorial among...
View ArticleRedirect to other servers based on FQDN
I belive this is called Reverse Proxying, but heres my situation...I need to be able to redirect incomming http and https requests, all comming in on the same IP, to other web servers based on...
View ArticleGeoIP blocking behind AWS ELB + proxy protocol
Hi -I have nginx servers behind an AWS ELB. Because web sockets are leveraged, the ELB is configured as TCP load balancing with the proxy protocol option set. The true IP address of the client is...
View ArticleReverse proxy - retry connection in response to error 50x
I have a reverse proxy setup pointing to a single IIS server. On occasion, the backend IIS server throws a 500 that is easily resolvable by a browser refresh. Our developers are having trouble figuring...
View Article