Re: How to redirect requests based on request_body regex match ?
I think I will have to use something like "echo_read_request_body" from the "HttpEchoModule" to get the post body only when really required and expect the $request_body to be filled up.
View ArticleRe: Stop One Site From Viewing Other's Files
Thanks for the suggestion! I gave that a look over. Here's where I'm at now:I followed the following guide to set up php-fpm pools:...
View Articleblock traffic from specific IP
I'm running nginx as a reverse proxy. From time to time, I notice annoying DoS style attacks coming from specific IP addresses - probably nessus or something similar checking out my server. Is there an...
View ArticleRe: block traffic from specific IP
http://www.cyberciti.biz/faq/linux-unix-nginx-access-control-howto/http://nginx.com/resources/admin-guide/restricting-access/
View ArticleRe: block traffic from specific IP
Solved...I don't know how I missed this in the documentation :-)
View ArticleFile Upload failed....(OpenEvent("ngx_master_1904") failed)
Hello,I have setup Ngnix in front of tomcat based application running on port 8080 & 8081 and its being accessed on port 80 through ngnix. Everything works fine except when I upload resouces to...
View ArticleNginx as reverse proxy and sabredav/z-push
I've a Group-Office application on a shared hosting server. Recently I decided to add a reverse proxy (nginx) in front of a apache using custombuild2. Unfortunately since then carddav/caldav(sabredav)...
View ArticleConvert a few htaccess rules to nginx
HiI am looking for a way to convert htaccess rules to nginx rules so my IPBContent will work ....:RewriteEngine OnRewriteBase /RewriteCond %{REQUEST_FILENAME} !.*\.(jpeg|jpg|gif|png|ico)$RewriteCond...
View ArticleRe: Convert a few htaccess rules to nginx
Hi Astrapi, have you tried online converters like http://winginx.com/en/htaccess or http://www.anilcetin.com/ ?
View ArticleNginx to distribute load between two servers
Hello,I thought this would be possible with GeoIp but now I'm not so sure, so any clarification would be much appreciated.I have servers in two different geographic areas and I would like to redirect...
View ArticleUnknown nginx log error
HiToday i got this error on nginx log and nginx restart at this time but i don't know why:[code]03:06:01 [alert] 30292#0: unlink() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or...
View ArticleNginx as reverse proxy for Exchange ActiveSync with certificate authentication
Hi,I try to configure Nginx as reverse proxy for Exchange ActiveSync with certificate authentication.Owa and other services work perfectly. In addition, if I use password authentication for Exchange...
View Articlenginx always rederict me to my internal ip
Hello everybody,im using nginx with owncloud on my raspberry pi. Under "sites available -> default" i've set it up like this.server {listen 80;server_name 192.168.1.114;return 301...
View ArticleHow to set response from rewrite_by_lua_file directive
I have a rewrite_by_lua_file directive where I lookup a key supplied as a header in the original request, in a shared lookup table. If found, I pass as a header the value mapped to the original key. If...
View ArticleNGINX: Disk write spike and/or not enough workers error from sudden surge in...
I have been trying to diagnose an issue we have on our production servers. We have a server running NGINX as a load balancer which splits requests between four application servers. At least a few times...
View ArticleRe: How to set response from rewrite_by_lua_file directive
Downloading seems to take forever. The contents of my key_lookup.lua is below:local cjson = require("cjson")local headers = ngx.req.get_headers()local key = headers["X-KEY-HEADER"]if key thenlocal...
View ArticleRe: How to set response from rewrite_by_lua_file directive
Better place to ask Lua stuff:https://groups.google.com/forum/#!forum/openresty-en
View ArticleRe: NGINX: Disk write spike and/or not enough workers error from sudden surge...
Set worker connections to 10k, a 500 is usually a tomcat backend that needs https://github.com/yaoweibin/nginx_ajp_module
View Article