I just realised, after a discussion with gavino, that there's an easier
way to declare a domain:
/robots.txt {
literal "User-agent: *\nDisallow:\n"
mime text/plain
}
instead of
robots {
url /robots.txt
literal "User-agent: *\nDisallow:\n"
mime text/plain
}
So I've changed that, in Site.tcl and example.config, so now domains
(etc) can be defined using their URL. I don't know why I didn't think
of it before!
Also, and BTW, //fred.com/robots.txt is different from /robots.txt. The
former is restricted to fred.com virtual domain.
Colin.,
The old style still works, of course, but I'd have to say it's
deprecated. New style is much nicer. The tag in config just has to
start with at least one '/' to trigger the behaviour.
Colin