nginx config not reset correctly after restart via HUP signal

Delta Yeh delta.yeh at gmail.com
Wed Sep 17 11:00:53 MSD 2008


Hi,
 I 'm testing nginx as a reverse proxy in scenarios.

  I use the following config :
server {
   server_name site1;
   location / {
     proxy_set_header  my_header   site1;
  }
}
it works as expected.

then I remove site1 ,add site2 ,the config change to :
 server {
   server_name site2;
   location / {
     proxy_set_header  my_header   site2;
  }
}
and then send the HUP signal  to nginx to restart it.

The access to site2 is OK but the value of my_header is still site1.
If I stop ngix and start it again , everything is OK.



BR,
DeltaY





More information about the nginx mailing list