Hi on Linux Centos 5 wiht nginx 1.2.7, I am struggling to find the pid file in my nginx.conf file I have pid /usr/local/nginx/logs/nginx.pid; but I dont see any nginx.pid in there. I tried to set that path at compile time but to no avail. Is there a command to know where that file is? Wy doesn't the above entry work? Thanks!by JCR - Nginx Mailing List - English
Hello I am using the /nginx_upload_module-2.2.0 with nginx 1.0.15 with great success I would like to extend it in two ways: (1) Each HTTP POST request to the module contains a username and a password field and I would like to make some checks on those values as early as possible and possibly reject the request even before the file is uploaded. (2) I would like to save the file in aby JCR - Nginx Mailing List - English
Hello Maxim Thanks a lot! I went back to RFC 2046 and understood clearly my mistakeby JCR - Nginx Mailing List - English
Hello, I and using nginx 1.0.15 with the third-party module nginx_upload_module-2.2.0/ When I am using an html form all works perfectly and I can see the uploaded files and the post values as expected. But, when I send the HTTP Post request from a Poco application, it does not work. (pocoproject.org) I am pasting below the code of that C++ Poco app. I don't think that you need to be aby JCR - Nginx Mailing List - English
Hello, By default, where does Nginx store files that are uploaded through an html form? I am using a fastcgi application linked to nginx through supervisord. Or is it up to the sole cgi library to decide where to store that file? I am a bit confused here. Thanks!by JCR - Nginx Mailing List - English
Hello, Thanks you to both of you for your answers. I am think all my confusion was coming from I was convinced that ngx_supervisor could add backend to the rotation. Thanks for clarifying that. All is good now.by JCR - Nginx Mailing List - English
>> Is there a way to add backend server dynamically to the rotation? >No, all the backends have to be specified during startup. You could regenerate the config file and reload Nginx, though. Is it common to have 100 - 200 backends? Is there a better solution to manage that many backends other than writing script; maybe a directive or a module?by JCR - Nginx Mailing List - English
Thanks for the answer! I am still unable to have processes started as needed. Let's say that one process needs 10 seconds to complete and I have one backend server in the rotation, processing two requests at the same time will take 20 seconds. Is there a way to have nginx / ngx_supervisord recognized that another backend server is needed and that the two are done in 10 seconds? Is theby JCR - Nginx Mailing List - English
Hello, I am struggling with the configuration of ngx_supervisord. My goal is to use that module to spawn instance of a C++ fastcgi program on demand. What puzzles me is that from the example (http://github.com/FRiCKLE/ngx_supervisord), I understand the changes I have to make to the nginx.conf file but what about the /etc/supervisord.conf file; should I have a section for ? From the example itby JCR - Nginx Mailing List - English
Hello, I would need a more general solution to this problem (and I need to keep my filesystem case sensitive). Sometimes, owners of websites use caps to make their urls more readable. For instance, they would write "website: www.gallery.com/TheArtClub.html" on their business card. Of course, it is sometimes difficult to anticipate their usage of capital letters. And I find it difficulby JCR - Nginx Mailing List - English
Hello On a centos 5 box running the latest nginx, I am struggling with case sensitivity: I have in root the file go.html and I want the request for file GO.html server the file go.html I thought that something like 45 location ~* / { 46 index index.html index.htm; 47 } would do the trick but it doesn't. What are the main strategies toby JCR - Nginx Mailing List - English
Hello, I am using supervisord to run fastcgi programs. Because supervisord does start processes on demand, I realized I should install nginx_ngx_supervisord/. I am struggling with the installation. I got the module ngx_supervisord from http://labs.frickle.com/nginx_ngx_supervisord/ and I got the module upstream fair http://nginx.localdomain.pl/wiki/UpstreamFair I am using the latest nginxby JCR - Nginx Mailing List - English
Hello, Using the http_push_module, I have several clients chatting with each other. I need to put a moderator in the between who would for instance check messages and possible change those messages or close the channel. What would be the proper way to implement such a moderator? Thank youby JCR - Nginx Mailing List - English
Hello, Is there a way to set up nginx so that an http request is: (1) processed as usual, with the client receiving the appropriate answer (2) and the same request is forwarded to another server with the answer ignored. It would be important that the forward be done once the answer is sent to the client. Thanks!by JCR - Nginx Mailing List - English
Why don't you want a fastcgi_pass directive? Otherwise it's easy especially with the use of supervisord from my own experience. See the thread http://forum.nginx.org/read.php?2,93268 for more detailsby JCR - Nginx Mailing List - English
Hi, it looks like the problem was that I was using getenv("SERVER_HOSTNAME"). I am not sure why this happens but at least it is working now. When I change my chat program, I do supervisorctl shutdown; supervisord; to see the newer version. Is there a better way to that? Thanks again for your idea of using supervisord. Maybe that should go into wiki because it is quite conveby JCR - Nginx Mailing List - English
The log file of supervisord tells me: 2010-06-02 11:59:46,441 INFO exited: chat_04 (terminated by SIGSEGV; not expected) Does that point to a memory issue with my fasctcgi program?by JCR - Nginx Mailing List - English
Almir, Thank your for your help. I have supervisor running with: at the end of supervisord.conf: 131 132 command=/websites/nginx/chat.toff 133 socket=tcp://localhost:9000 supervisor> status chat RUNNING pid 4904, uptime 0:01:45 in my nginx.conf file I have: 56 location ~ \.toff$ { 57 #include /usr/local/nginx/conf/fastcgi.conby JCR - Nginx Mailing List - English
hello I have a fastcgi program like this 1 #include "/usr/local/include/fcgi_stdio.h" 2 #include <stdlib.h> 3 int count; 4 void initialize(void) 5 { 6 count=0; 7 } 8 int main(void) 9 { 10 initialize(); 11 12 while (FCGI_Accept() >= 0) 13 { 14 printf("Content-tyby JCR - Nginx Mailing List - English
Hello, Thank you very much for your answer. I have both apache and nginx running at the same time with no disturbance. Excellent! One thing I am still very confused about is how changes to the configuration file are captured. With apache, I do an apachectl -k graceful. Here from what I have read I should: kill `cat /usr/local/nginx/logs/nginx.pid` then /usr/local/nginx/sbin/nginxby JCR - Nginx Mailing List - English
Hello, I have a centos 5 box with apache running fine and listening to port 80. I'd like to try nginx on let's say port 5080 (or maybe there is a better port), without disturbing my apache setup. (1) If I compile nginx from source and do nothing, will my apache setup be disturbed? (2) I am thinking that all the work to make sure nginx listens to port 5080 is to be done in the nginx.confby JCR - Nginx Mailing List - English
![]() |
![]() |
![]() |
![]() |
![]() |