Hi all..I am using nginx for my personal wordpress blog..I wanted to know how to restrict a file type in it..
in other words , I just want to allow image files (jpg,png,gif) in wp-uploads folder for security purposes..
please guide me
thanks
vamsi
Hi all..I am using nginx for my personal wordpress blog..I wanted to know how to restrict a file type in it..
in other words , I just want to allow image files (jpg,png,gif) in wp-uploads folder for security purposes..
please guide me
thanks
vamsi
This may be of assistance to you. I have used it once before:
Secure File Upload Check List With PHP - Hungred Dot Com
Have a look:
HTH,
Jaysunn
Take a look at location directive. It can be used to match given regex and take some action. For example, following be used to block hotlinking:
Only allow imagesCode:location ~* (\.jpg|\.png|\.gif)$ { valid_referers blocked theos.in www.theos.in; if ($invalid_referer) ) { return 444; } }
NginxHttpCoreModuleCode:location /path/to/your/wp-uploads { if ($request_uri ~* (^\/|\.jpg|\.png|\.gif)$ ) { break; } return 444; }
Last edited by nixcraft; 19th November 2009 at 11:10 AM.
All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]
vamsi (19th November 2009)
how fast is nginx? some one said lighttpd is very fast, thoughts?
I think only large size website need nginx or lighttpd server. Most small site are okay with apache. At least most of our customer run apache.
Raj
Linux rulz.
I have never turned back in my life ; I shall not do so today.. haha
My site is on a 128 mb ram vpsso I try all the ways to reduce the ram usage and one of the way I adopted is nginx . I was not able to find any noticeable speed changes on my blog.. also many say that nginx is best for serving static content..and I am just experimenting all types of servers just foe fun
will try lighty after my test in college
![]()
Hello Guys,
I want to know more about lsof command, however I have basic info of that command which is not sufficient to trace out many things. As lsof is great tool.
There are currently 1 users browsing this thread. (0 members and 1 guests)