Welcome! Log In Create A New Profile

Advanced

Create a file in the server using nginx

December 20, 2015 05:10PM
Hi,
I have Nginx running on a Server named ServerS. I have some
backend(upstream) servers B1,B2 etc which server S is proxying( load
balancing). Just to give you a complete picture, may be not relevant to the
question I'm asking.

I want to test ServerS by sending some commands (in the form of a file) to
the ServerS system through Nginx. I'm planning to do it by for example
curl doing a post to Nginx to create a file which I'm sending through curl
post. Nginx basically saves this file in some directory path which my
application reads this file periodically and performs some action based on
the content of the file.

Probably I can use REST library etc but I don't want to burden myself using
it as I can acheive the same by creating a file in the server using Nginx.

In summary, curl should a post/put a file and Nginx should save it in a
directory. Is this possible?


Any suggestions?
Thanks!

--
Best Regards
Prasanna Khanapur
Oslo, Norway
Mobile: +4795417774
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Create a file in the server using nginx

pk123 531 December 20, 2015 05:10PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 286
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready