nginx last version on windows

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

nginx last version on windows

zakirenish
hi
today i'm start using nginx 1.19.2

trying to create upload files

and i got this
2020/09/03 08:02:21 [emerg] 8252#1152: unknown directive "upload_pass" in
C:\nginx-1.19.2/conf/vhost/ug04.cn.center.conf:43

my config

server
{
    listen       82;
    server_name  192.168.1.2;
    index index.html index.htm index.php;
    root  /nginx-1.19.2/html/center/manager/sites/cp;

    client_max_body_size 500m;
    location /nginx-1.19.2/html/center/manager/app/cp/views {
        upload_pass /nginx-1.19.2/html/center/upload;
        upload_store /dev/shm;

        upload_store_access user:r;

        upload_set_form_field $upload_field_name[name] "$upload_file_name";
        upload_set_form_field $upload_field_name[content_type]
"$upload_content_type";
        upload_set_form_field $upload_field_name[path] "$upload_tmp_path";

        upload_aggregate_form_field "$upload_field_name[md5]"
"$upload_file_md5";
        upload_aggregate_form_field "$upload_field_name[size]"
"$upload_file_size";
        upload_pass_form_field "^.*$";
        upload_cleanup 400 404 499 500-505;
    }


i search like a 2 day and fail with it i found upload module but i can't
install it in windows
any idea ?
thanks

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,289290,289290#msg-289290

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|

Re: nginx last version on windows

Francis Daly
On Thu, Sep 03, 2020 at 02:18:12AM -0400, jasonsx wrote:

Hi there,

> and i got this
> 2020/09/03 08:02:21 [emerg] 8252#1152: unknown directive "upload_pass" in
> C:\nginx-1.19.2/conf/vhost/ug04.cn.center.conf:43

That means that the nginx binary that you are using does not include a
module that uses that directive.

> i search like a 2 day and fail with it i found upload module but i can't
> install it in windows
> any idea ?

If you need the module, you must either find-or-build a nginx binary
that includes it; or (if it can be a dynamic module) find-or-build the
module and load it.

Depending on what you want to do, you may not need the module.

http://nginx.org/r/upload_pass suggests that it is not a stock nginx
module that you are hoping to use -- for a third-party module, you may
want to check which nginx version it is declared to work with.

Good luck with it,

        f
--
Francis Daly        [hidden email]
_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|

Re: nginx last version on windows

zakirenish
thank you for fast replay
well i was search alot and alot for the binary this include the module in it

but i can't found any of nginx binray
already download alot of binary from website and fail with it
i'm a windows user so the linux will be hard to me

thank

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,289290,289293#msg-289293

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|

Re: nginx last version on windows

zakirenish
In reply to this post by Francis Daly
I will have a look to see if this can be included in our next version.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,289290,289295#msg-289295

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|

Re: nginx last version on windows

zakirenish
thanks you
this will be great :)

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,289290,289297#msg-289297

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|

Re: nginx last version on windows

Francis Daly
On Thu, Sep 03, 2020 at 06:55:56AM -0400, jasonsx wrote:

Hi there,

For what it's worth:

to handle file uploads in nginx, you need nginx + your own code; or
nginx + this upload module + your own code.

Using this module might make the "your own code" part a bit easier to
write; but it will still need to be written.

So if you need to have file uploads working before someone prepares
the module for you, you can make the "your own code" part handle it
all. (Some languages / libraries do make the "your own code" part simpler
than some others.)

Cheers,

        f
--
Francis Daly        [hidden email]
_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|

Re: nginx last version on windows

zakirenish
thanks for you replay

yep i'm already download nginx src and trying to compiler it with the module

but i'm stuck in perl 5.10.0 and mingw is using 5.8.8

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,289290,289303#msg-289303

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|

Re: nginx last version on windows

zakirenish
There's no point in trying, that module's code is full of errors and too
many hacks.

Your better of with Lua which is embedded in our version, see
https://www.gakhov.com/articles/implementing-api-based-fileserver-with-nginx-and-lua.html

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,289290,289307#msg-289307

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|

Re: nginx last version on windows

zakirenish
thank you i will try it now
thanks for you time

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,289290,289308#msg-289308

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx