enhancement to .config form

4 views
Skip to first unread message

Colin McCormack

unread,
Feb 2, 2011, 11:10:40 PM2/2/11
to wub-dis...@googlegroups.com
Hi All,

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.,

Tom Krehbiel

unread,
Feb 3, 2011, 12:34:29 PM2/3/11
to wub-dis...@googlegroups.com
Thanks Colin, I like this change.
tomk

Colin McCormack

unread,
Feb 3, 2011, 5:20:39 PM2/3/11
to wub-dis...@googlegroups.com
On 04/02/11 04:34, Tom Krehbiel wrote:
> Thanks Colin, I like this change.
> tomk

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

Reply all
Reply to author
Forward
0 new messages