Windows nginx 1.7.4.2 WhiteRabbit

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.zip on site !
  • set-misc-nginx-module v0.24 (upgraded 26-7-2014)
  • echo-nginx-module v0.54 (upgraded 19-7-2014)
  • lua-nginx-module v0.9.11 (upgraded 25-7-2014)
  • form-input-nginx-module v0.09 (upgraded 23-7-2014)
  • Source changes back ported
  • Source changes add-on’s back ported
  • Changes for nginx_basic: Source changes back ported
  • Scheduled release: yes
  • Additional specifications: see ‘Feature list’
  • This release is dedicated to our beloved Yorkshire terrier Peewee who
    aged 11,5 years passed away on Sunday July 20 at 15.15, we shall miss
    him dearly.

Builds can be found here:

Follow releases https://twitter.com/nginx4Windows

Posted at Nginx Forum:

Thanks itpp2012 love it <3 any plans for perl in your Nginx Builds ?

http://wiki.nginx.org/Modules
http://nginx.org/en/docs/http/ngx_http_perl_module.html

Posted at Nginx Forum:

I also noticed you added the PHP and Nginx U. 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
thinking
for others.(Maybe they are lazy)

I am not sure if anyone else uses the following program
https://bitsum.com/processlasso/ but for me in a server enviorment it
works
wounders i can set the CPU affinities and seperate Nginx from PHP to its
own
CPU Cores. But i am curious if it is a bad thing to do this when i have
“worker_processes auto;” set to be auto and create the number of Nginx
instances for the number of CPU cores avaliable.
Core functionality

Posted at Nginx Forum:

It was on the todo list, but its not that simple, for example:

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 into a tcp port, just like php
works.

Or use a simple apache/modperl as (loadbalanced) backend(s).

Posted at Nginx Forum:

c0nw0nk Wrote:

I also noticed you added the PHP and Nginx U. 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 thinking for others.(Maybe they are lazy)

The way we made those scripts show that anything is possible with
Windows
with security in mind and minimal effort, there is no excuse for not
securing nginx / php or laziness anymore.

PHP to its own CPU Cores. But i am curious if it is a bad thing to do
this when i have “worker_processes auto;” set to be auto and create
the number of Nginx instances for the number of CPU cores avaliable.
Core functionality

Whatever works best for you, there are many tools to force cpu affinity,
for
some apps 1 worker/cpu works best for other apps 2 workers/cpu works
better.
There is no clear guideline other then testing/tuning everything not
just
nginx.

Posted at Nginx Forum:

Thats what i have been doing not enocunterd any issues as such yet with
Nginx or PHP i am also curious if it possible to execute compression of
images via Nginx, For those of us who use CloudFlare.com already know
that
cloudflare performs lossless image compression most likely the same way
via
linux.

On windows we have the following tool avaliable what just executes a
series
of command line tools to compress images.
http://nikkhokkho.sourceforge.net/static.php?page=FileOptimizer aswell
as
various other files zip, rar, gzip, png ,jpeg the list is endless.

But to save having to compress images manualy especialy if dealing with
a
site that takes image/media uploads could we not have nginx execute the
program via a command line module for images it is serving.

I looked through the modules list the only one i could find that might
make
use of the exec function is the following.

Posted at Nginx Forum:

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. Module ngx_http_gzip_static_module
Serving precompressed content with Nginx and Zopfli | Frederic Cambus

Posted at Nginx Forum:

I also see LUA can do the job but i get the feeling i will hit a dead
end if
i did this.

location /compress-images {
content_by_lua ‘os.execute(“C:/server/bin/compress.exe”)’;
}

Posted at Nginx Forum:

Hello!

On Thu, Jul 31, 2014 at 10:06 AM, c0nw0nk wrote:

I also see LUA can do the job but i get the feeling i will hit a dead end if
i did this.

location /compress-images {
content_by_lua ‘os.execute(“C:/server/bin/compress.exe”)’;
}

Oh no, os.execute() is blocking. You should avoid that whenever possible
:slight_smile:

Regards,
-agentzh

Well what i was describing was to compress the original media items.
Saving
storage/disk space.

Posted at Nginx Forum:

Yeah i thought that would not be allowed for some reason.

Does anyone know a way you can execute a program via the echo module or
another way with the lua module ?

location ~* .(jpg|png|jpeg|ico|gif|bmp)$ {
echo “$http_host$request_uri”;
}

That should echo the url of the image then i just need to input that uri
into one of the command line tools to compress it.

Posted at Nginx Forum:

Hello!

On Fri, Aug 1, 2014 at 5:03 AM, c0nw0nk wrote:

Does anyone know a way you can execute a program via the echo module or
another way with the lua module ?

You can try this: GitHub - juce/lua-resty-shell: tiny subprocess/shell library to use with OpenResty application server

Regards,
-agentzh

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

Posted at Nginx Forum:

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 ?

Posted at Nginx Forum:

Hello!

On Fri, Aug 1, 2014 at 2:18 PM, Yichun Z. (agentzh) wrote:

You can try this: GitHub - juce/lua-resty-shell: tiny subprocess/shell library to use with OpenResty application server

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.

Regards,
-agentzh

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 topic.

64bit builds are still under investigation, a basic testbuild we’ve done
last month did not show enough gain yet.

Posted at Nginx Forum: