Welcome! Log In Create A New Profile

Advanced

Same root folder for multiple website different robots.txt

Vincent M.
August 06, 2021 10:22AM
Hello,

I have a first website with this configuration:

server {
        server_name mywebsite.com;

        root /var/www/website/prod;
....
}

and a second one like this with the same root folder:

server {
        server_name pro.mywebsite.com;

        root /var/www/website/prod;
....
}

And the only problem is they have the same robots.txt file.

Is it possible to tell the second server to link the file robots.txt to
another file like robots-pro.txt?

And by the way the url http://pro.mywebsite.com/robots.txt would open
the file robots-pro.txt.

Thanks,
Vincent.


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

Same root folder for multiple website different robots.txt

Vincent M. August 06, 2021 10:22AM

Re: Same root folder for multiple website different robots.txt

Francis Daly August 06, 2021 12:22PM

Re: Same root folder for multiple website different robots.txt

Vincent M. August 07, 2021 07:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 76
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready