s_n Wrote: ------------------------------------------------------- > Hi all, > > we want to use a F5 loadbalancer in front of two nginx instances, > which balance the load to our app-nodes. Why not cut out the F5, use stream to balance between the same instance(s) (loop back) with either a single server block and loadbalanced upstream or split up, which ever works best / moreby itpp2012 - Nginx Mailing List - English
Here http://nginx-win.ecsds.eu/by itpp2012 - Other discussion
That should be possible now with the tcp loadbalancer (stream), on my site we have a small example inside the latest release archive.by itpp2012 - Other discussion
If this doesn't work you need to use Lua, http://stackoverflow.com/questions/26436891/nginx-lua-modify-html-response-after-proxy-passby itpp2012 - How to...
B.R. Wrote: ------------------------------------------------------- > 2 > ^4 = all 16 combinations. Hopefully the 'test' sting is only 4 > characters > long... > > Case-insensitiveness is no-trivial check, and if needed PCRE are here > for > that through regex locations. > What is wrong with them already? At assembly level alot, +-20 bytes including aby itpp2012 - Nginx Mailing List - English
Have you tried enclosing them with quotes "" ?by itpp2012 - How to...
J.J J Wrote: ------------------------------------------------------- > No, exact and inclusive match are case sensitive. > > You can write it in two location : > location = /test > location = /TEST > > Personally, I think it's a bad practice to differentiate requests by > the > case(ness) of URI. Hmm so you also need to add location = /Test loby itpp2012 - Nginx Mailing List - English
Then get an appliance box, flash nginx on it, add some guard software in case nginx doesn't restart. If you have a hardware loadbalancer you can configure that for failover to your second nginx balancer.by itpp2012 - How to...
It suppose to auto restart, but its better to find out why it crashed and fix that.by itpp2012 - How to...
Is your fcgi listening on 127.0.0.1:8000 ?by itpp2012 - Migration from Other Servers
You read the file into an array, dsarr = {}; local file = io.open("file.txt", "r"); for i = 1, count, 1 do ds_line = file:read(); table.insert (dsarr, ds_line); And while reading you could parse the line or later parse the array. Though at http://viremo.eludi.net/LuaXML/ is a good example of using a library and being ableby itpp2012 - How to...
https://www.google.nl/#q=nginx+lua+read+xml http://viremo.eludi.net/LuaXML/ And then do something in a location block like: set_by_lua $notused ' ngx.var.myroot = "default value"; if myuri == "www" then ngx.var.myroot = "someothervalue"; end; '; But then of-course with a variable to be used in proxy_pass.by itpp2012 - How to...
Using Lua you can read anything, convert and set variables.by itpp2012 - How to...
Then maybe with Lua you could capture the response and change it accordingly.by itpp2012 - Ideas and Feature Requests
Maybe use another location block to loop-back where you can change the name (or request something else) and stream via this extra block.by itpp2012 - How to...
TPFreak Wrote: ------------------------------------------------------- > not a single documentation on how to use it with cookies & variables, > so it can't be that easy? lol Thats why I said test map block with curl, map $http_cookie $checkCookie { default 0; ~$SHA1 $var; } Should work with $var but untested, else you might have to switch to Lua where complex variable hanby itpp2012 - How to...
Ok, but you said; "I can replace string if is not .m3u8 but if is on .m3u8 then I have a problem" Can you explain what the problem is? To me this seems to be working. If you do a curl -h "http://domen.com/test/playlist.m3u8" and you want to hide playlist.m3u8, you replace playlist.m3u8 with playlist.xxxx Maybe this http://serverfault.com/questions/489672/nginx-url-rby itpp2012 - How to...
Can you be a bit more clearer in what you want to happen (or not to happen) ?by itpp2012 - How to...
Your going about it the wrong way, first learn what map does, try a few simple map's, get/install curl, run curl on your map test setup and see what comes back. Once you see the power of map, what curl gives you back (or not) we can try to figure out what you want is possible and maybe how. Keep config as small as possible.by itpp2012 - How to...
Maybe use 'map' to determine which responses to cache and which not?by itpp2012 - Ideas and Feature Requests
Ah then you need something like this: map $host $dswcname { default "www"; ~smartgrids "smartgrids"; [...] } server { listen 80; server_name .site.eu; [...] root /home/hifolio/public_html/$dswcname; [...]by itpp2012 - How to...
> Access to the requested URI has been blocked by the URL Firewall You need to find out first who is giving this message, use curl to look at the headers.by itpp2012 - How to...
11:16 14-5-2015 nginx 1.9.1.1 Lizard Based on nginx 1.9.1.1 (8-5-2015, with 'stream' tcp load balancer) with; + pcre-8.37 (upgraded, regression tested) + During re-factoring nginx for Windows we've switched code base which makes it easier for us to import original nginx code without Windows issues by using a new native linux <> windows low level API which natively deals with sby itpp2012 - Nginx Mailing List - English
Maybe this helps: http://forum.nginx.org/read.php?2,258792by itpp2012 - How to...
You can read the forum here https://groups.google.com/forum/#!forum/openresty-en or download all the stuff of my site in sig. and look through the Lua examples, especially the /conf/eblb folder.by itpp2012 - Other discussion
b43n7 Wrote: ------------------------------------------------------- > I hear that nginx can be used as a RTMP/HLS and that there are builds > out there with RTMP already compiled but i'll be a monkey's uncle if I > could find a working build. I see there are a lot of unanswered > questions in these forums related to this subject and can only assume > that either nobody is doiby itpp2012 - New Member Introductions
atqtjay Wrote: ----------------------------------------------------> some reason but is there a way to 'force' a refresh if any of the ID's > change for some reason? You could make a location block which accepts ID's which should be purged(or refreshed) from cache. And use a script (scheduled or not) to initiate this. Or use a ngx timer object to refresh the cache once every 5min.by itpp2012 - How to...
There is one issue here, a file read is only read at startup, any changes won't be passed until a restart. Second, using such variable stuff is best done with Lua, https://github.com/chaoslawful/lua-nginx-module discussions here https://groups.google.com/forum/#!forum/openresty-en for example; init_by_lua ' dsstr = {}; ds_as = 0; local file = io.open("conf.d/clusby itpp2012 - How to...
See here https://github.com/chaoslawful/lua-nginx-module most if not all already done.by itpp2012 - Other discussion
braindeaf Wrote: ------------------------------------------------------- > http://blah.example.co - returns curl: (60) SSL certificate problem: > Invalid certificate chain Forget one thing, you also need a wildcard DNS entry. DNS: so it arrives at your frontdoor Nginx.conf (server_name .example.co;): so you can deal with itby itpp2012 - Nginx Mailing List - English
![]() |
![]() |
![]() |
![]() |
|