Welcome! Log In Create A New Profile

Advanced

Re: location /robots.txt conflict / issue

Francis Daly
September 29, 2016 05:24PM
On Thu, Sep 29, 2016 at 01:09:47PM -0400, c0nw0nk wrote:

Hi there,

The docs are at http://nginx.org/r/location

In this case, you want "=".

> location /robots.txt {
> location ~* \.(txt|ini|xml|zip|rar)$ {

A request for /robots.txt will match the second location there.

> location /robots.txt {
> location ~* \.(txt|ini|xml|zip|rar)$ {

A request for /robots.txt will still match the second location there.

Change the first location to be

location = /robots.txt

and it should all Just Work.

Cheers,

f
--
Francis Daly francis@daoine.org

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

location /robots.txt conflict / issue

c0nw0nk September 29, 2016 01:09PM

Re: location /robots.txt conflict / issue

Francis Daly September 29, 2016 05:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 281
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