We have found out that the problem is caused by my frpc module. Everything is OK withnout the module. This frpc module reads POST request body and thed generates a response. In location /public/RPC2 the module is off but some initial function of the module are carried out. There is probably an incorrect construnction in module initialization that doesn't allow to run proxy module. The major parby michalkraus - Nginx Mailing List - English
Hello, we have problem with proxying some RPC (POST) requests to a backend server. When a request is sent without proxy to the backend directly everrything is OK. So problem is probably caused by nginx proxy. When the request is sent from the same server as proxy is installed, response is allways OK as well. The problem occurs just when a method with many parameters is called (large POST requby michalkraus - Nginx Mailing List - English
Hello, I need to add header Expires, when the response code is 404. Unfortunately HttpHeadersModule can set the header just when the response is 200, 204, 301, 302 or 304. It's no problem to add the header using HttpHeadersMoreModule even if the status is 404. But It is written in description of HeadersMoreModule: "Unlike the standard headers module, this module does not automatically takeby michalkraus - Nginx Mailing List - English
Thanks for your options > 3) Use a heartbeat solution - http://linux-ha.org/wiki/Main_Page I have API between the Nginx and the second (control) server. I use RPC interface. I need just send a RPC request (with status infrmation) to the control server. I think that heartbeat is too robust. > 4) Use cron to start a script which does the test, sleeps for 30s, then does > the testby michalkraus - Nginx Mailing List - English
Hello, I would like my Nginx server to run every 30 seconds a service job. This job will just send a message to another server that the nginx is running and OK. Does anybody know how to do it? I have just one idea - to write a module that will send the OK message to another server. Then cron will run each 1 minute (unfortunately 30 seconds is not possible) a script that will send a request to thby michalkraus - Nginx Mailing List - English
Thanks a lot for your time. Now, my module provides the data for cookie as a variable and proxy_set_header just sets the cookie. Sending a response to client via headers_out is OK. I have managed to get the value of the cookie variable in my another module. I used ngx_http_get_variable_index() for getting the index of variable in configuration section and then at runtime ngx_http_get_indexed_varby michalkraus - Nginx Mailing List - English
Thanks, I have already read this recommendation in another topic. But headers_more_module can modify header_in.headers and I wanted to do it as well. I will just modify headers_out and I will provide the cookie as a variable and use proxy_set_header. So I will avoid SIGSEGV. One more question about reading value of a variable in my module. I have output as variable $ap_filter_gsid from my modulby michalkraus - Nginx Mailing List - English
Hello, I have a filter module in rewrite phase. The module tests if a cookie is in the request. If not the module generates one (if cookie is found the module modifies it) and then send it back to the client via headers_out. But I need one more functionality. I want the generated/modified cookie to be sent to the proxy module. I have used the headers_more_module for this purpose so far and it woby michalkraus - Nginx Mailing List - English
Hello, I have problem with getting the value of a variable from nginx conf file in my module - $arg_u. Code in my module seems like: { ngx_string("ap_filter_sessionid"), NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, ngx_conf_set_str_slot, NGX_HTTP_LOC_CONF_OFFSET, offsetof(ngx_http_ap_filter_loc_conf_t, sessionid), NULL }, There is string "$aby michalkraus - Nginx Mailing List - English
After using ngx_http_read_client_request_body() function, my handler works correctly. Thanks, Michalby michalkraus - Nginx Mailing List - English
Hello, I'm working on a modul, that should get a POST request with XML-RPC data and then send a response. I have problem with getting the request_body. It's no problem to read headers and find Content-Type: text/xml. But when I want to read the request_body there is no one. I use the same code as the function for reading request_body in ngx_http_variable. My modul is a handler (something likeby michalkraus - Nginx Mailing List - English
Hello, I have the same problem. How can I get the value of a variable from nginx.conf? Thanks, Michalby michalkraus - Nginx Mailing List - English
Hello, I have a problem with my module. I have written a filter module that checks a cookie from a client. If the cookie exists my module changes value of it. If not the module generates a new cookie for the client. It worked well until now when I added the proxy module. My goal is to check the cookie (change or create) - send the request with the cookie via proxy to another server and then senby michalkraus - How to...