starting /stopping nginx

Payam Chychi pchychi at gmail.com
Wed Apr 22 00:35:51 MSD 2009


wow i feel like a dumb dumb... re-reading what i had wrote out in the
config ... i noticed i had typed in /var/log(s)/nginx... where its
/var/log/nginx..

sorry for the dumb problem guys... i thought i was going crazy and yet
it was such a stupid mistake

on a side note, anyone have a sample config of allowing proxy_pass to
attach $realip of the client to the backend origin server? My origin
sees all connections being made by my nginx proxy even though i have
x-forward set in my proxy.conf

proxy_redirect          off;
proxy_set_header        Host            $host;
proxy_set_header        X-Real-IP       $remote_addr;
proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size    10m;
client_body_buffer_size 128k;
proxy_connect_timeout   90;
proxy_send_timeout      90;
proxy_read_timeout      90;
proxy_buffers           32 4k;



Thanks everyone for their help...
Payam



2009/4/21 Igor Sysoev <is at rambler-co.ru>:
> On Tue, Apr 21, 2009 at 01:11:45PM -0700, Payam Chychi wrote:
>
>> Hey,
>>
>> I noticed that the graceful reload was not actually loading the new
>> config changes and so ive had to use a hard down/start
>
> I never saw this. Anyway, nginx should write the reason in error_log.
>
>> kill -quit $master works
>>
>> i did also notice that nginx will not start with the following in the config:
>> pid  /var/log/nginx/nginx/pid;
>
> Also, nginx should write the reason in error_log.
>
> I use -QUIT only for in this sequence:
>
> kill -USR2 `cat nginx.pid`  # upgrade
> kill -QUIT `cat nginx.pid.oldbin`
>
> I use only -HUP to reload configuration
>
>> so ive had to remove the line from the config...
>> so it makes sense to why i cant stop it.. the pid is not able to write
>> to a file
>>
>> -payam
>>
>>
>> 2009/4/21 Igor Sysoev <is at rambler-co.ru>:
>> > On Tue, Apr 21, 2009 at 09:50:09AM -0700, Payam Chychi wrote:
>> >
>> >> hey Guys,
>> >>
>> >> Anyone else notice that in the resent *.52 release stopping/starting
>> >> nginx does not restart the process? I manually have to kill -9 the
>> >> master and each child...
>> >
>> > BTW, why do you use stop/start instead of graceful reload ?
>> >
>> >
>> > --
>> > Igor Sysoev
>> > http://sysoev.ru/en/
>> >
>> >
>>
>>
>>
>> --
>> Payam Tarverdyan Chychi
>> Network Security Specialist / Network Engineer
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
>



-- 
Payam Tarverdyan Chychi
Network Security Specialist / Network Engineer





More information about the nginx mailing list