Welcome! Log In Create A New Profile

Advanced

Nginx static file deletion

Steve Zhuo
July 21, 2011 11:04PM
hi.

I found out recently that everytime i restart my nginx, nginx is trying
to delete the static directory and everything under it. following is my
static directory configuration:


http{

.....

proxy_cache_path /path/to/static levels=1:2 keys_zone=one:60m
inactive=3d max_size=100m;
proxy_temp_path /tmp/cache;


location ~*
(\.txt$|\.ico$|\.css$|\.js$|\.png$|\.gif$|\.jpg$|\.jpeg$|\.json$|\.xml$|\.zip$|\.html$)
{



root /path/to/static;
proxy_cache one;
proxy_cache_key www.website.com$request_uri;
proxy_cache_valid 200 1h;
proxy_cache_use_stale error timeout invalid_header;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
expires 7d;
}

}

this is the only place where i point to the static directory.

any help is appreciated.


Thank You

Steve Zhuo

--
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx static file deletion

Steve Zhuo July 21, 2011 11:04PM

Re: Nginx static file deletion

Ensiferous July 22, 2011 09:43AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 138
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready