nginx include(s)
As part of my ongoing exploration with dotcloud, I've had to do a bit of learning about nginx.
I've never worked with nginx before but i needed to add some rewrite rules into my dotcloud deployment. I wanted to make sure that static content like images and css files where being served by the nginx instead of my app (Dancer is pretty nice about making sure public content gets served during requests).
I found that after changing a nginx include that the server needs to be restarted or reloaded after a change to the include. I spent a few hours trying to figure out if a restart was required since I wasn't sure if I had screwed up the rules due to a bug (now fixed) with dotcloud deployment not restarting it after a push as expected for Perl deployments.
dotcloud provides server restart as: udo /etc/init.d/nginx restart
__END__
I've never worked with nginx before but i needed to add some rewrite rules into my dotcloud deployment. I wanted to make sure that static content like images and css files where being served by the nginx instead of my app (Dancer is pretty nice about making sure public content gets served during requests).
I found that after changing a nginx include that the server needs to be restarted or reloaded after a change to the include. I spent a few hours trying to figure out if a restart was required since I wasn't sure if I had screwed up the rules due to a bug (now fixed) with dotcloud deployment not restarting it after a push as expected for Perl deployments.
dotcloud provides server restart as: udo /etc/init.d/nginx restart
__END__
Comments
Post a Comment