I want to block by referrer. I provided a more "normal" record so that the user
agent and referrer location was obvious by context.
My problem is I'm not creating the match expression correctly. I've tried
spaces, parens. I haven't tried quotes.
Original Message
From: Robert Paprocki
Se
Well what is your log format then? We can't possibly help you if we don't have
the necessary info ;)
Do you want to block based on http referer? Or user agent string? Or something
else entirely? The config snippet you posted indicates you are trying to block
by referer. If you want to block a r
I think the ipad is the useragent. I wiped out that access.log, but
here is a fresh one showing a browser (user agent) in the proper field.
200 76.20.227.211 - - [21/Jun/2017:00:48:45 +] "GET /images/photo.jpg
HTTP/1.1" 91223 "http://www.mydomain.com/page.html"; "Mozilla/5.0 (Linux;
Android
Do you mean $http_user_agent?
> On Jun 20, 2017, at 17:36, "li...@lazygranch.com"
> wrote:
>
> I would like to block the google app from directly downloading images.
>
> access.log:
>
> 200 186.155.157.9 - - [20/Jun/2017:00:35:47 +] "GET /images/photo.jpg
> HTTP/1.1" 334052 "-" "com.goo
I would like to block the google app from directly downloading images.
access.log:
200 186.155.157.9 - - [20/Jun/2017:00:35:47 +] "GET /images/photo.jpg
HTTP/1.1" 334052 "-" "com.google.GoogleMobile/28.0.0 iPad/9.3.5 hw/iPad2_5" "-"
My nginx code in the images location:
if ($http_referer
Problem was SELinux.
Ran the following to create a rule to allow the traffic:
grep nginx /var/log/audit/audit.log | audit2allow -M ldap
semodule -i ldap.pp
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,274942,274981#msg-274981
___
nginx m
Hello,
On 06/20/2017 06:17 AM, guruprasads wrote:
Hi all,
I am trying to configure 3 virtual hosts for single server with same port,
but php is not working for all virtual hosts.
My requirement is as below,
IP:port-A/
IP:port-A/local
IP:port-A/viewer
These 3 virtual hosts i want to configure
Hi all,
I am trying to configure 3 virtual hosts for single server with same port,
but php is not working for all virtual hosts.
My requirement is as below,
IP:port-A/
IP:port-A/local
IP:port-A/viewer
These 3 virtual hosts i want to configure, only html contents are displaying
on browser, if i