Hi, I'm having some trouble getting hotlinking protection working with nginx
and xenforo forum software.
Currently I have;
server {
listen 80;
...
location / {
try_files $uri $uri/ /index.php?$uri&$args;
}
location ~ \.php$ {
}
location ~* ([0-9a-zA-
NGINX+ also offers
http://nginx.org/r/proxy_cache_purge
On Fri, Oct 31, 2014 at 12:50:50PM +0200, Roland RoLaNd wrote:
> thank you, that's exactly what i want
> > Date: Fri, 31 Oct 2014 03:44:08 -0700
> > From: rpapro...@fearnothingproductions.net
> > To: nginx@nginx.org
> > Subject: Re: invalid
You can use something like this to handle project directories.
$PROJECT_DIR=/srv/myproject
semanage fcontext -a -t httpd_sys_content_t "$PROJECT_DIR(/.*)?"
if [ -d "$PROJECT_DIR" ]; then
restorecon -R "$PROJECT_DIR"
fi
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,254456,254497#msg
As a follow up, if you are using NginX as a proxy, you might need a few more
things. Here is a preliminary template of a type enforcement I've created
for NginX to alleviate these issues. You can use this Type Enforcement file
to generate an SELinux module, package it up, and load it.
module ngi
Thank you Richard. I have shared your post in my thread in the CentOS
forums.
For now, to work around the issue, CentOS forum user sercan has provided the
following commands to create a new SELinux policy for Nginx. I've tested it
on two of my servers and it works.
- Make sure you have the policy
thank you, that's exactly what i want
> Date: Fri, 31 Oct 2014 03:44:08 -0700
> From: rpapro...@fearnothingproductions.net
> To: nginx@nginx.org
> Subject: Re: invalidate a certain key in my cache
>
> You'll want to use http://labs.frickle.com/nginx_ngx_c
You'll want to use http://labs.frickle.com/nginx_ngx_cache_purge/
On 10/31/2014 03:43 AM, Roland RoLaNd wrote:
> I have nginx setup as a caching proxy, which caches redirect responses from
> backend servers.
>
> I want a way to invalidate a certain redirect/key from my cache.
>
> i usually go i
I have nginx setup as a caching proxy, which caches redirect responses from
backend servers.
I want a way to invalidate a certain redirect/key from my cache.
i usually go into my caching dir and grep/remove it.
though i would like to do it dynamically by issuing a specific request to
nginx..
i