Re: Caching servers in Local ISPs !!

2014-06-06 Thread itpp2012
shahzaib1232 Wrote: --- > @itpp I am currenlty proceeding with proxy_cache method just because i > had > to done this in emergency mode due to boss pressure :-|. I have a > quick > question, can i make nginx to cache files for specific clients ? >

Re: Rtmp Module and LibRtmp

2014-06-13 Thread itpp2012
Specific rtmp issues are better placed here: https://groups.google.com/forum/#!forum/nginx-rtmp Posted at Nginx Forum: http://forum.nginx.org/read.php?2,250839,250843#msg-250843 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/li

Re: Rtmp Module and LibRtmp

2014-06-15 Thread itpp2012
Thats about it when it comes to support, though it is weekend maybe as of monday there might be more activity, Roman is very active there. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,250839,250867#msg-250867 ___ nginx mailing list nginx@ng

Re: Caching servers in Local ISPs !!

2014-06-16 Thread itpp2012
shahzaib1232 Wrote: --- > Maybe i need to add some variable to get original server ip ? https://www.google.nl/#q=nginx+geo+remote+ip+address http://www.cyberciti.biz/faq/nginx-redirect-backend-traffic-based-upon-client-ip-address/ Posted at Ng

Re: Caching servers in Local ISPs !!

2014-06-17 Thread itpp2012
shahzaib1232 Wrote: --- > Thanks itpp but the issue is still same and still the ip is from the > main > server in inspect element as well as in local-caching nginx access > logs, i > am getting the client ip as main-server's ip instead of original

Re: Caching servers in Local ISPs !!

2014-06-17 Thread itpp2012
shahzaib1232 Wrote: --- > i don't think the solution rdns will be suitable for us. I have > checked the > zebra software to make linux a BGP router > http://www.techrepublic.com/article/use-zebra-to-set-up-a-linux-bgp-os > pf-router/ > > Could yo

Re: Caching servers in Local ISPs !!

2014-06-17 Thread itpp2012
You don't need to do anything with a dns that is only local to the clients served by the ISP. Suppose I am in Africa; Question to my ISP: I'd like to go to new-york ISP: new-york is located in south-Africa Suppose I am in the US; Question to my ISP: I'd like to go to new-york ISP: new-york is loc

Re: Nginx on Windows PHP fastcgi read timeouts

2014-06-18 Thread itpp2012
Lets see some logging. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,250964,250990#msg-250990 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx on Windows PHP fastcgi read timeouts

2014-06-18 Thread itpp2012
PHP_FCGI_MAX_REQUESTS=0, try the recommended value of 1. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,250964,250992#msg-250992 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx on Windows PHP fastcgi read timeouts

2014-06-18 Thread itpp2012
c0nw0nk Wrote: --- > error_log logs/error.log crit; > > Is my current setting should i change it to debug ? No option is required to get error messages about backend issues. Remove that first server {} block with the return 200, for fcgi try

Re: Nginx on Windows PHP fastcgi read timeouts

2014-06-18 Thread itpp2012
c0nw0nk Wrote: --- > Upon the change it gets worse now i do not even get a error the > browser just time's out. I have no idea if it is a Joomla issue or if > it is actualy something with PHP on windows. I get the feeling it is a > bit of both. T

Re: Caching servers in Local ISPs !!

2014-06-18 Thread itpp2012
shahzaib1232 Wrote: --- > > Btw, our local ISP provided us with some testing ip prefixes to check > nginx > based caching. i.e > geo { > default 0; > 10.0.0.0/8 > 39.23.2.0/24 1; > 112.50.192.0/18 1; > } > Typo?? geo { default 0; 10.0.0.0/8 1

strange map $request issue

2014-06-20 Thread itpp2012
For example: map $request $testvar { default 0; ~*montytest 1; } if ($testvar) { return 412; } [20/Jun/2014:xx:xx:20 +0200] 69.64.:52393 - - "GET /montytest/ HTTP/1.1" 412 712 "-" "Mozilla/5.0 [20/Jun/2014:xx:

Re: strange map $request issue

2014-06-20 Thread itpp2012
The log entries are both in access.log, nothing in error.log, maybe a try_files thing ? though the IF is after try_files and works for a GET. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251074,251076#msg-251076 ___ nginx mailing list nginx

Re: strange map $request issue

2014-06-20 Thread itpp2012
It was a malformed request so a 400 is correct, a valid HEAD in this case does return a 412. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251074,251080#msg-251080 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listi

[ANN] Windows nginx 1.7.3.1 RedKnight

2014-06-21 Thread itpp2012
12:37 21-6-2014 nginx 1.7.3.1 RedKnight Based on nginx 1.7.3 (20-6-2014) with; + new best practice ssl_ciphers example (nginx-win.conf) + fastcgi/upstream fix: http://forum.nginx.org/read.php?29,250947,251007#msg-251007 + form-input-nginx-module (https://github.com/calio/form-input-nginx-module) +

Re: Download full mp4 file with proxy_cache or proxy_store !!

2014-06-23 Thread itpp2012
Roman Arutyunyan Wrote: --- > Moreover the mp4 module does not work over proxy cache. That means > even if you fix the cache key issue > mp4 seeking will not work. You need to have a local mp4 file to be > able to seek mp4 like that. Hmm, what

Re: Proxy Bypass only specific IP

2014-06-23 Thread itpp2012
if ($remote_addr ~ "^(10.10.*.*)$") { } Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251124,251126#msg-251126 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx Windows High Traffic issues

2014-06-26 Thread itpp2012
The way things have been redesigned, worker_rlimit_nofile has no purpose anymore, it's best not to set any value. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251186,251187#msg-251187 ___ nginx mailing list nginx@nginx.org http://mailman.ng

Re: Nginx Windows High Traffic issues

2014-06-26 Thread itpp2012
c0nw0nk Wrote: --- > Well without a value everything is very very slow. With a value its > nice and fast. Interesting to know, the Windows design and other portions scale automatically between 4 API's to deal with high performance while offloadin

Re: Nginx Windows High Traffic issues

2014-06-26 Thread itpp2012
c0nw0nk Wrote: --- > Could it be possible my server slows down because all connections are > in use ? No, it's a recycling and auto-tuning issue as far as I can see, have you determined at which value you noticed the difference or is this value s

Re: Nginx Windows High Traffic issues

2014-06-26 Thread itpp2012
This is a disk IO issue, not running out of connections, setting 190 is pointless, 16k is more then enough, no more then 2 workers per cpu, I see 12 workers so do you have enough cpu's to cover that? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251186,251210#msg-251210 __

Re: Nginx Windows High Traffic issues

2014-06-27 Thread itpp2012
Looking at the disk activity access to disk is using all your resources not nginx. Here http://s633.photobucket.com/user/C0nw0nk/media/Untitled-5.png.html you see nginx itself is waiting for disk IO to complete, all processes are doing just about nothing other then waiting for the harddisk, the mai

Re: Nginx Windows High Traffic issues

2014-06-27 Thread itpp2012
It all depends what you are writing, too small blocksize, many seeks, onboard diskcache not working (writeback). Run some disk benchmarks to see what your storage is capable of and compare that to how much data your attempting to write. At the moment your disks are not keeping up with the amount of

Re: Nginx Windows High Traffic issues

2014-06-27 Thread itpp2012
Try via a forum like http://www.overclock.net/t/1193676/looking-for-hdd-benchmark-utility Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251186,251249#msg-251249 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo

Re: Nginx Windows High Traffic issues

2014-06-27 Thread itpp2012
Which shows disk IO is much better which to me indicates there were/are too many small writes to disk, when some parts are slow tuning is a big time issue with nginx no matter which OS your running. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251186,251259#msg-251259 ___

Re: Nginx Windows High Traffic issues

2014-06-27 Thread itpp2012
c0nw0nk Wrote: --- > Perhaps nginx should look at the I/O usage to do with that function > and see if they can make it better. Its a disk subsystem issue which is under control by the OS not nginx, a good 15k sas does wonders. Posted at Nginx Fo

Re: proxy_cache not serving file from edge server !!

2014-07-01 Thread itpp2012
shahzaib1232 Wrote: --- > Our caching method is :- > > client > origin ---> edge. > This is not going to work as expected, you need client > edge ---> origin Where edge proxy-passes to origin when file is not in cache. Posted at Nginx

Re: Send 502 when all php-fpm workers are in use

2014-07-06 Thread itpp2012
The only way around this would be some kind of counter keeping track of whats available and if max is reached create a file where you test on in a nginx config, maybe Lua can do this counting part. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251476,251478#msg-251478

Re: i cant use limit_conn_zone

2014-07-08 Thread itpp2012
This version from here http://nginx-win.ecsds.eu/ works with shared memory. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251561,251565#msg-251565 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: i cant use limit_conn_zone

2014-07-08 Thread itpp2012
This has nothing to do with documentation, what you want to use does not work with the original nginx version (shared memory) the version on the website I've referred you to does work, so either forget about using limit_conn_zone or replace your nginx version with this other version. Posted at Ngi

Strange try_files behaviour

2014-07-11 Thread itpp2012
Simple php config (nginx 1.7.4 development); server { [...] location ~ \.php$ { try_files $uri $uri/ =404; index index.html index.htm index.php; fastcgi_ignore_client_abort on; fastcgi_pass myLoadBalancer; fastcgi_index in

Re: Strange try_files behaviour

2014-07-11 Thread itpp2012
Ok, debug session here http://pastebin.com/DQ6WBYXU I see one try_files phase, maybe a script is processed differently then a static file. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251650,251652#msg-251652 ___ nginx mailing list nginx@ng

Re: Strange try_files behaviour

2014-07-11 Thread itpp2012
Valentin V. Bartenev Wrote: --- > On Friday 11 July 2014 17:42:41 itpp2012 wrote: > > Ok, debug session here http://pastebin.com/DQ6WBYXU > [..] > > It looks like one case of http://wiki.nginx.org/IfIsEvil Maybe but s

Re: Strange try_files behaviour

2014-07-12 Thread itpp2012
Hmm, more debugging, this config returns a 404 from the backend (which it shouldn't): try_files $uri $uri/ =404; set $maintmode S; if ($remote_addr ~ "^(192.168.*.*)$") { set $maintmode L; } if (-f $document_root/maintenance_mode.html) { set $maintmode "${maintmode}M"; } if ($maintmode = SM) { re

[ANN] Windows nginx 1.7.4.1 RedKnight

2014-07-13 Thread itpp2012
15:54 13-7-2014 nginx 1.7.4.1 RedKnight Based on nginx 1.7.4 (11-7-2014, last changeset 5767:abd460ece11e) with; + lua-nginx-module v0.9.11 (upgraded 12-7-2014) + echo-nginx-module v0.54 (upgraded 3-7-2014) + form-input-nginx-module v0.09 (upgraded 3-7-2014) + Source changes back ported + Source c

Re: Strange try_files behaviour

2014-07-13 Thread itpp2012
Ok clear enough, I'd still consider it some kind of bug (it makes no sense for try_files to be disabled when an if matches), for example using map and a single IF does this as well which is more or less nginx's recommended way of doing an IF with map. Funny thing is when you have a .php location i

Re: Strange try_files behaviour

2014-07-14 Thread itpp2012
Maxim Dounin Wrote: --- > And we even have a trac ticket for this: > > http://trac.nginx.org/nginx/ticket/86 A tested workaround with Lua and a single IF with a return then: location ~ \.php$ { try_files $uri $uri/ =404;

Re: Strange try_files behaviour

2014-07-15 Thread itpp2012
With pure Lua and no IF (crossposted in openresty group): location / { try_files $uri $uri/ =404; index index.html index.htm; } location ~ \.php$ { try_files $uri $uri/ =404; rewrite_by_lua ' local s = 0; local

Re: Multiple sites under same domain with one app codebase

2014-07-18 Thread itpp2012
Maybe not exactly what your looking for but should give enough to rewrite this for what you want with map. https://gist.github.com/anonymous/68caceb6c935e7120a60 Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251908,251917#msg-251917 ___ ngin

Re: Multiple sites under same domain with one app codebase

2014-07-18 Thread itpp2012
Enable debugging and check the logs, or add Lua and dump variables to see what value is doing what (this is how I debug a flow). Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251908,251923#msg-251923 ___ nginx mailing list nginx@nginx.org ht

Re: Multiple sites under same domain with one app codebase

2014-07-18 Thread itpp2012
Maybe you should set location as fixed generic and then use root to change where ever it needs to, don't forget to tell php where stuff is if you change root. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251908,251928#msg-251928 ___ nginx m

Re: Proxy_pass Directive !!

2014-07-19 Thread itpp2012
shahzaib1232 Wrote: --- > Means, both server's i/o will be used if the requested file to > upstream is > 720p.mp4? Yes, what you're looking for is a way to client-rewrite the address the source is coming from. 1.2.3.4 -> request xx.mp4 -> edge 5

Re: Proxy_pass Directive !!

2014-07-19 Thread itpp2012
B.R. Wrote: --- > > How? don't ask me :) > > > ​ > Is there a legal problem doing that? Why the smiley? No :) I'd do it simple by using HTTP-EQUIV="REFRESH" as a response with an origin address. Posted at Nginx Forum: http://forum.nginx.org/rea

Re: Proxy_pass Directive !!

2014-07-20 Thread itpp2012
shahzaib1232 Wrote: --- > rewrite test.com back to test.com. You mentioned the solution > HTTP-EQUIV="REFRESH" . Is that fine to use this method also, could you > tell > me how to use it with origin ip in nginx ? So client will resend the > reques

[ANN] Windows nginx 1.7.4.2 WhiteRabbit

2014-07-27 Thread itpp2012
22:40 26-7-2014 nginx 1.7.4.2 WhiteRabbit "I'm late! I'm late! For a very important date! No time to say hello, goodbye! I'm late! I'm late! I'm late!" The nginx WhiteRabbit release is here! Based on nginx 1.7.4 (25-7-2014, last changeset 5771:c3b08217f2a2) with; + See Install_nginx_php_services.

Re: [ANN] Windows nginx 1.7.4.2 WhiteRabbit

2014-07-28 Thread itpp2012
It was on the todo list, but its not that simple, for example: http://stackoverflow.com/questions/20376990/perl-cgi-vs-fastcgi http://forums.iis.net/t/1107796.aspx?FastCGI+Perl Basically you can take any fcgi wrapper, adjust some minor stuff for windows but you'd have to rewrite the socket part in

Re: [ANN] Windows nginx 1.7.4.2 WhiteRabbit

2014-07-31 Thread itpp2012
c0nw0nk Wrote: --- > I also noticed you added the PHP and Nginx User setups for security > would you also add a FTP / MySQL option even though it is easy for us > to just edit the vb scripts to suit our needs for other services but i > was just th

Re: [ANN] Windows nginx 1.7.4.2 WhiteRabbit

2014-07-31 Thread itpp2012
The trick with pre-compressed files is to have a separate process doing the compression and doing a test inside nginx for the existence of this compressed file. Ea. if file.jpg.extracompressed exists then serve directly from filesystem else do something with zlib. Ea2. http://nginx.org/en/docs/ht

Local processing return values from fastcgi_pass

2014-08-01 Thread itpp2012
For example I have one fastcgi_pass location block and I want to process the return values of a request to use in a second fastcgi_pass, is this possible ? location ... { ... fastcgi_pass server1; # server1 returns some values # process these values and call another fastcgi_pass server if (!$value

Re: Local processing return values from fastcgi_pass

2014-08-01 Thread itpp2012
tnx Maxim, I'm going to try to solve this with Lua. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252200,252211#msg-252211 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: [ANN] Windows nginx 1.7.4.2 WhiteRabbit

2014-08-01 Thread itpp2012
> But for expensive image compression involved with relatively large > data volumn and CPU computation, it is better to be done in a > dedicated daemon process outside your online nginx server. Exactly, like I already wrote in http://forum.nginx.org/read.php?2,252064,252184#msg-252184 Posted at N

Re: change proxy_pass protocol accordingly to x-forwarded-proto

2014-08-03 Thread itpp2012
Use 'map', ea: http://danconnor.com/post/4f65ea41daac4ed03104/https_ssl_proxying_nginx_to_nginx Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252235,252238#msg-252238 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailma

Re: Why cannot the same path for cache used several times?

2014-08-05 Thread itpp2012
B.R. Wrote: --- > What is wrong in having configured: > > proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=one:10m; > proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=two:10m; keys_zone is memory, the other a 'file' path, I could i

Re: [ANN] Windows nginx 1.7.4.2 WhiteRabbit

2014-08-06 Thread itpp2012
c0nw0nk Wrote: --- > Also itpp2012 i don't know if you remember from the last time we > talked but would it be better or any difference for you to compile a > 64bit Nginx instead of a 32bit ? For new items/issues please open a new

[ANN] Windows nginx 1.7.5.1 WhiteRabbit

2014-08-07 Thread itpp2012
19:48 7-8-2014 nginx 1.7.5.1 WhiteRabbit Based on nginx 1.7.5 (7-8-2014, last changeset 5801:ab48149b77a6) with; + Openssl-1.0.1i (CVE-2014-3508, CVE-2014-5139, CVE-2014-3509, CVE-2014-3505, CVE-2014-3506, CVE-2014-3507, CVE-2014-3510, CVE-2014-3511, CVE-2014-3512) + lua-nginx-module v0.9.11 (

gzip if in location example

2014-08-08 Thread itpp2012
Syntax: gzip on | off; Default:gzip off; Context:http, server, location, if in location Is there an example of this "if in location" usage ? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252407,252407#msg-252407 ___

Re: gzip if in location example

2014-08-08 Thread itpp2012
This I suppose: location / { try_files $uri $uri/ =404; if ($scheme = http) { gzip on; } index index.html index.htm; } Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252407,252409#msg-252409 _

Re: Multiple nginx instances share same proxy cache storage

2014-08-11 Thread itpp2012
Robert Paprocki Wrote: --- > like rsyncing the cache contents between nodes thus would not work); > are there any recommendations to achieve such a solution? I would imagine a proxy location directive and location tag; shared memory pool1 = ngin

Introducing ngxLuaDB powered by nginx for Windows

2014-08-11 Thread itpp2012
Introducing ngxLuaDB (nginx Lua Database) a collection of DLL’s build against Luajit which can be used with nginx for Windows. Please note that only a few modules have been tested, for the moment this is a prove of concept (this is mainly because the usage of some modules is unknown). ngxLuaDB ad

Re: reverse proxy images - windows

2014-08-13 Thread itpp2012
nginx version? configuration? log entries? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252520,252526#msg-252526 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: reverse proxy images - windows

2014-08-13 Thread itpp2012
Try it with IP addresses instead of names. and you are looping back into nginx with your upstream, try a real backend. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252520,252541#msg-252541 ___ nginx mailing list nginx@nginx.org http://mailm

SPDY being disabled in Chrome (temporary)

2014-08-13 Thread itpp2012
Fyi. https://groups.google.com/forum/#!topic/spdy-dev/qFKgWBq9E3M "Yes, this is expected. Chrome SPDY support will be substantially diminished this week and should be mostly back to normal next week. " Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252547,252547#msg-252547 __

Re: Sudden 500 Internal Server Error nginx/1.0.11

2014-08-13 Thread itpp2012
1.0.11 ?? that went out with the dinosaurs. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252546,252548#msg-252548 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: reverse proxy images - windows

2014-08-13 Thread itpp2012
Francis Daly Wrote: --- > I suspect it is that nobody cares enough about nginx on Windows to > either > write the code, or to encourage someone else to write the code, to > make > things work as well there. (Presumably, if it were simple to get >

Re: reverse proxy images - windows

2014-08-14 Thread itpp2012
Francis Daly Wrote: --- > Are there any plans or prospects to get the code changes merged into > the > "authoritative" source? Highly unlikely, more then 2000 lines of new code, mayor changes to the core, 3 integrated api's, I think Igor/Maxim wi

Re: add_header is not working in certain locations

2014-08-14 Thread itpp2012
Adding a few notes: IF should only be used to return a state, ea. if ... 'error_page' and nothing else because it breaks the chain of processing, when you really need IF's, nested, setting values or otherwise use Lua. For example: http://forum.nginx.org/read.php?2,251650,251777#msg-251777 The prob

Re: redirect question (inception inside)

2014-08-16 Thread itpp2012
Shouldn't the /us/ be removed in the rewrite? what does the logfile say where it is trying to locate to? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252606,252607#msg-252607 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/m

Re: proxied requests hang when DNS response has wrong ident

2014-08-18 Thread itpp2012
If its only a few lines you may consider adding the patch manually. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251779,252648#msg-252648 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: How can I run more than one process on Windows?

2014-08-20 Thread itpp2012
eComEvo Wrote: --- > This call will start a background process and it waits for it to > complete so it can display the final result. This is called blocking (as I already wrote on stack), to run this nonblocking your probably going to need cosock

[ANN] Windows nginx 1.7.5.2 WhiteRabbit

2014-08-20 Thread itpp2012
22:40 20-8-2014 nginx 1.7.5.2 WhiteRabbit Based on nginx 1.7.5 (20-8-2014, last changeset 5809:bb26f7ceaaf1) with; + ngx_upstream_jdomain (https://github.com/wdaike/ngx_upstream_jdomain) + https://github.com/nginx/nginx/pull/7, adding: proxy_ssl_client_certificate cert.pem; proxy_ssl_clie

Re: Nginx Windows | Keepalive timeouts location based

2014-08-26 Thread itpp2012
You should be able to test this with curl -k, see the curl manpage. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252851,252852#msg-252852 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: [ANN] Windows nginx 1.7.5.2 WhiteRabbit

2014-08-27 Thread itpp2012
To be short, no, use Lua, its not that difficult to convert to Lua (and make it non-blocking). There is a fastcgi shell for perl out there from 2002 which needs to be rewritten for todays demands, when thats done you can run perl just like php(cgi). Posted at Nginx Forum: http://forum.nginx.org/r

Re: [ANN] Windows nginx 1.7.5.2 WhiteRabbit

2014-08-27 Thread itpp2012
Try google and learn Lua, otherwise open a new topic maybe someone can assist you. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252707,252910#msg-252910 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Transforming nginx for Windows

2014-09-02 Thread itpp2012
nginx for Windows, one year on… Time flies when you’re having fun :) one year down the road transforming nginx, rewriting, re-developing, crashing, heavy battles with compilers, add-on’s, c++ restrictions, ngxLuaDB powered by nginx for Windows, cross compiler, multi node imports… and yet here we a

[ANN] Windows nginx 1.7.5.3 WhiteRabbit

2014-09-15 Thread itpp2012
18:42 15-9-2014 nginx 1.7.5.3 WhiteRabbit Based on nginx 1.7.5 (15-9-2014, last changeset 5834:ca63fc5ed9b1) with; + lua-upstream-nginx-module v0.2 (upgraded 14-9-2014) + echo-nginx-module v0.56 (upgraded 14-9-2014) + nginx-rtmp-module, v1.1.4 (upgraded 14-9-2014) includes https://github.com/aru

Re: Shellshock protection using nginx ?

2014-09-26 Thread itpp2012
Untested but should work; between http {} map $request $shellshockblock { default 0; ~*\:\; 1; ~*ping 1; ~*\/bash 1; } inside location {} if ($shellshockblock) { re

Re: health_check Windows

2014-10-10 Thread itpp2012
http://nginx.org/en/docs/http/ngx_http_upstream_module.html#health_check Alternative suggestions are welcome :) but I'm sure this can be tackled with Lua. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253893,253895#msg-253895 ___ nginx mail

Re: Can I use ngix as a SSL encryption wrapper as Stunnel?

2014-10-11 Thread itpp2012
For some things yes, depends on what your replacing. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253904,253908#msg-253908 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[ANN] Windows nginx 1.7.7.2 Gryphon

2014-10-15 Thread itpp2012
22:55 15-10-2014 nginx 1.7.7.2 Gryphon Tell me a story and I'll tell you my history. The Mock Turtle and the Gryphon are here to stay. What! Never heard of uglifying! If you don't know what to uglify is, you are a simpleton so you'd better get on your way. The nginx Gryphon release is here! Based

Re: issue with ssl_ciphers not being respected

2014-10-16 Thread itpp2012
At least update your openssl to 1.0.1j and try again. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254028,254032#msg-254032 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: [ANN] Windows nginx 1.7.7.2 Gryphon

2014-10-17 Thread itpp2012
With a backend (like php) you are always bound to what the backend can handle, nginx is just a portal here. The amount of backends should be balanced with the best balance setting like leastconn/iphash, ea: http://nginx.org/en/docs/http/load_balancing.html and also consider Lua for managing/offload

Re: issue with ssl_ciphers not being respected

2014-10-17 Thread itpp2012
Scott Larson Wrote: --- > Something else must be going on here. Looking at your ssl_cipher > string, you're opening with a rough declaration of specific ciphers > you'll > support, none of which should pull in RC4. It's specific enough in > fact >

Re: [ANN] Windows nginx 1.7.7.2 Gryphon

2014-10-17 Thread itpp2012
That php issue should be solved for awhile now, also deploy proper php.ini settings for each domain. ea: [PATH=s:/webroot/domain.nl] open_basedir = s:/webroot/domain.nl doc_root = s:/webroot/domain.nl error_reporting = E_ALL & ~E_NOTICE error_log = s:/logging/php/domain.nl.errors.log upload_tmp_dir

Re: Nginx Security Hardening and Rules

2014-10-19 Thread itpp2012
Paste in google: Top 20 Nginx WebServer Best Security Practices Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254125,254142#msg-254142 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: XP/IE8 HTTPS support :(

2014-10-20 Thread itpp2012
Try this; ssl_prefer_server_ciphers On; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!eNULL:!MD5:!DSS; Works with IE7/xp, sslabs is ok with this as well. Posted at Nginx Forum:

Re: Nginx Security Hardening and Rules

2014-10-21 Thread itpp2012
c0nw0nk Wrote: --- > I hate to bring bugs into this topic but seems possible that this is > something Windows related. > > But auth_basic is not working. [...] > admin:Wjki8C1VIunc2 > > So that would be > Username : admin > Pass : lol123 > > Bu

map within a map

2014-10-23 Thread itpp2012
Can I use multiple maps with a single map ? For example; map $ngxvar1 $myvar1 { default 0; ~*string 1; } map $ngxvar2 $myvar2 { default 0; ~*string 1; } map $ngxvar3 $myvar3 { default 0; ~*string 1; $myvar1 1; $myvar2 1; } This way I would only have one IF $myvar3 ., but obviously this examp

Re: map within a map

2014-10-23 Thread itpp2012
Igor Sysoev Wrote: --- > You can try other path: > > map $ngxvar1 $myvar1 { >default $myvar2; >~*string 1; > } > > > map $ngxvar2 $myvar2 { >default 0; >~*string 1; > } tnx Igor, this works to: map $ngxvar1 $myvar1 { d

Re: Nginx serving Large static files on windows

2014-10-24 Thread itpp2012
Sounds like a client issue which isn't dealing with partial downloads, had the same thing with an old vlc and twd/s5, used the latest vlc and it started playing after 2 seconds (2.8gb). If a client tells nginx to get it all it will send it all. Posted at Nginx Forum: http://forum.nginx.org/read.

Re: Nginx serving Large static files on windows

2014-10-25 Thread itpp2012
I have no idea how it works in detail but I can assume when a server gets a request the server will respond with an answer :) in other words the client has to tell the server how much it wants and the server has to be able to send partial content when configured to do so as by rtmp design (well not

Re: [ANN] Windows nginx 1.7.7.2 Gryphon

2014-10-28 Thread itpp2012
Whatever your system can handle, but anywhere between 4 and 20 should be ok, using more would only be useful when you make more pools and geoip split them up. ea. divide the world into 20 portions and have a pool of 8 for each. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254012,2543

Re: Rotating Access Logs with $date_local

2014-10-28 Thread itpp2012
rotatelogs.cmd @echo off ::Parse the time variable into timeStamp FOR /F "tokens=1-4 delims=/:., " %%J IN ("%time%") DO SET timeStamp=%%J%%K%%L ::Parse the date variable into dateStamp, MMDD FOR /F "tokens=2-4 delims=/:.- " %%J IN ("%date%") DO SET dateStamp=%%L%%K%%J set datename=%dateStamp%

Re: [ANN] Windows nginx 1.7.7.2 Gryphon

2014-10-28 Thread itpp2012
c0nw0nk Wrote: --- > I dont think 8 php process can take that much traffic ? Depends on what php has to do which needs to be tuned towards expected traffic, a good cache and pre-coding some php in Lua and deliver that via co-sockets can do wonder

Re: upstream sent invalid status "-1 Copy failed" while reading response header from upstream

2014-10-28 Thread itpp2012
NaZz Wrote: --- > If its unrelated to nginx why are people suggesting to edit various > settings in nginx.conf to fix this particular problem? You can only do so much with config, the real problem here is the upstream (=backend). nginx talks Engl

Re: SPDY inflate errors in nginx 1.7.4

2014-11-02 Thread itpp2012
Maybe this one: http://forum.nginx.org/read.php?29,250118 Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254523,254524#msg-254524 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: SPDY inflate errors in nginx 1.7.4

2014-11-02 Thread itpp2012
Then upgrade to 1.7.7 Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254523,254526#msg-254526 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Problem with 'Host' http header when using ssl

2014-11-05 Thread itpp2012
With such backends you need to tell the backend that the origin is https, otherwise it will 'think' its serving http since it is unaware of a proxy. ea. http://forum.nginx.org/read.php?2,254615,254618#msg-254618 ___ nginx mailing list nginx@ng

Re: Problem with 'Host' http header when using ssl

2014-11-05 Thread itpp2012
Ivan Artyukhin Wrote: --- > configuration. I'm still confused why I can set this header for > non-SSL port and I can't do it for SSL. What am I missing? Maybe its a SNI thing, see also http://forum.nginx.org/read.php?2,222512,222516#msg-222516

Re: Nginx with PHP on Windows

2014-11-09 Thread itpp2012
Apart from those settings, jailing php just like nginx as we do with 'Install_nginx_php_services.zip' and following its advice about further jailing, there is only one thing you could do and that's create more php jailed users, one for each instance and jailing them to their environment (www.sitea.

<    1   2   3   4   5   >