Re: I need my “bad user agent” map not to block my rss xml file

2019-01-10 Thread li...@lazygranch.com
On Thu, 10 Jan 2019 08:50:33 + Francis Daly wrote: > On Wed, Jan 09, 2019 at 06:14:04PM -0800, li...@lazygranch.com wrote: > > Hi there, > > > location / { > > if ($badagent) { return 403; } > > } > > location = /feeds { > > try_files $uri $uri.xml $uri/ ; > >

Re: I need my “bad user agent” map not to block my rss xml file

2019-01-10 Thread Francis Daly
On Wed, Jan 09, 2019 at 06:14:04PM -0800, li...@lazygranch.com wrote: Hi there, > location / { > if ($badagent) { return 403; } > } > location = /feeds { > try_files $uri $uri.xml $uri/ ; > } > The "=" should force an exact match, but the badagent map is >

Re: I need my “bad user agent” map not to block my rss xml file

2019-01-09 Thread li...@lazygranch.com
On Wed, 9 Jan 2019 08:20:05 + Francis Daly wrote: > On Tue, Jan 08, 2019 at 07:30:44PM -0800, li...@lazygranch.com wrote: > > Hi there, > > > Stripping down the nginx.conf file: > > > > server{ > > location / { > > root /usr/share/nginx/html/mydomain/public_html; > > if

Re: I need my “bad user agent” map not to block my rss xml file

2019-01-09 Thread Francis Daly
On Tue, Jan 08, 2019 at 07:30:44PM -0800, li...@lazygranch.com wrote: Hi there, > Stripping down the nginx.conf file: > > server{ > location / { > root /usr/share/nginx/html/mydomain/public_html; > if ($badagent) { return 403; } > } > location = /feeds { > try_files $uri