Proxy_Pass to another vhost on same machine (no replies)
Hello,I am attempting to use ca.mydomain.com with client certificate auth as a springboard for other sites on the same server. I am using client certs with my iphone (and other browsers) to skip the...
View ArticleAccessing the location configuration of module 2 during post configuration...
How do we access the configuration of a an unrelated module in a given module. This may be required for example to check if the directives pertaining to module 2 were specified in location for a...
View Articlehow to get response headers from internal-requests? (no replies)
Hi all,Is there a way to get the response headers from internal-requests?p.s. I am using ngx.location.capture(uri) for the internal requests.Thanks in...
View Articleinput body filer (1 reply)
Now I want to do some security testing for input body, but I find nginx doesn't have the detection mechanism for input body.anyone who can tell me why? Thanks!
View ArticleUnable to complete secure transaction (2 replies)
Hello,I am using the following nginx.conf https://gist.github.com/nkhine/f620f8bdc0fb613b7b59 and have an EV Multi-Domain certificate from COMODO for my company.This works on Chrome and Firefox, but I...
View ArticleRewrite rules from Apache again (1 reply)
I'm still trying to move everything from apache to nginx.I've successfully translated some rules from the .htaccess:RewriteRule ^(.*)_k(.*)\.htm$ pagina.php?k=$2works pretty weff if turned into:rewrite...
View Articlelocation uri wildcard (4 replies)
I recently converted my website from asp.net and have the following links out there that I would like to permanent redirect to my new url, but I seem to not be able to create this. My goal is to create...
View Article400 bad requests now returning http headers? ( crossdomain.xml ) (2 replies)
Hi,I'm using Nginx to serve a file called crossdomain.xml, that file is used by Flash client to allow socket crossdomain Policy. It's a trick that many people are using instead of having a dedicated...
View Articlenginx gunzip memcached data , xss_callback failed (no replies)
Hi,I use nginx to read mecached data and write to memcached by java XmemcachedClient . Xmemcached compress data that larger than 256kB before write . So nginx i use ngx_gunzip_module and...
View ArticleLife of objects allocated using the request pool? (1 reply)
What is the life of objects allocated using the request pool? If I allocatememory from the r->pool in a request handler, what would be the life of theobject? Will the objects be freed if the request...
View Articleproxy_pass to different upstreams based on a cookie in the http request...
Hello,Am wondering if there is a way to proxy (i.e proxy_pass inside locationdirective) to different set of upstreams based on whether a particularcookie is present or not in a http request...
View Articletmp directory filling up (1 reply)
Hi,I have a rails application that is hosted through nginx and passenger. In this application I want provide very large files for the users to download (>2GB) using send_file .. which is working...
View Articleproxy_redirect vs. relative URLs from upstream (no replies)
Hi,I'm trying to create a sinle proxying configuration as following:location = /proxy {resolver 8.8.8.8;proxy_pass $args;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_set_header...
View ArticleNginx location for not exists php files (1 reply)
I have config(minimal):server {listen test.local:80;server_name test.local;server_name_in_redirect off;location / {root /data/www/test/public;try_files $uri $uri/ /index.php?route=$uri&$args;index...
View ArticleGeoIP FirstNonPrivateXForwardedForIP (1 reply)
Hi,My website does country based redirection based on result obtained from GeoIP against IP.I am facing a problem where GeoIP does not work as first IP in the X-Forwarded-For has Private network...
View ArticleRtmp Module and LibRtmp (2 replies)
Hello.I am seeking advice and suggestions for this issue with nginx and the rtmp moduleI have been working with RTMP. Previously i have worked with cRtmpServer, however nginx seems better for extending...
View ArticleHow could I forbid outside visits without response 403 (3 replies)
Hi Buddy,I am a newer to Nginx world, now I have a project to link the varnish HTTP server and nginx together, nginx is the back end.I want to allow the connections only by varnish, so I use deny all...
View ArticleApache To Nginx Web Server (no replies)
Hello,I want to change my Web Server from Apache to Nginx, but i have aconfiguration error with this server. I want to change the rewrite moduleinside .htaccess, shown below, as nginx configuration...
View Articlenginx error after trying to upload images (2 replies)
Hi all,Anyone have an idea why we would get this error when trying to upload image?I am stumped as to why nginx erro would be mixed in with this. Is thecustomers ISP using nginx and blocking our...
View ArticleParse JSON POST request into nginx variable (1 reply)
How can I read a POST request body which is JSON and get a property? I need to read a property and use it as a variable in proxy_pass.Pseudo code:$post_request_body = '{"account": "test.mydomain.com",...
View Article