- explain what you are trying to do,
I have a robots.txt on sub.doman.com/robots.txt that i want to replace with another robots.txt. For example with the ones on C:\caddy\robots.txt or the one in domain.com/robots.txt
both domain.com and sub.comain.com are in the same network, under different VM.
subdomaincom is served thru reverse proxy.
the problem basically is that a nextcloud snap VM blocks all bots thru robots.txt. i want to replace that via rewrite to robots.txt that allows all bot.
- show what you have already tried,
already tried
rewrite /robots.txt c:\caddy\robots.tx
and
header /robots.txt {
User-agent : *
Disallow :
}
status 200 /robots.txt
thnkyou
pardon my english