]> Sergey Matveev's repositories - public-inbox.git/commit
examples/newswww.psgi: demonstrate standalone NewsWWW usage
authorEric Wong <e@80x24.org>
Mon, 4 Feb 2019 11:00:26 +0000 (11:00 +0000)
committerEric Wong <e@80x24.org>
Thu, 7 Feb 2019 21:38:34 +0000 (21:38 +0000)
commit285b9b4d7de53b0d607be81fd608d40da82a2fad
treefc22ee6c0f357ca7d87f51a6b8e6c478c4a7d8a0
parent7eae167d1569bb952cfc06a66afd2dce588bb29b
examples/newswww.psgi: demonstrate standalone NewsWWW usage

Plack::Builder allows "mounting" on with hostnames as well as
path names to enable virtual hosting.  This example demonstrates
how port 80/443 for "news.example.com" can redirect browser
requests when somebody attempts to use a "nntp://" URL and
the software assumes "http://"
examples/newswww.psgi [new file with mode: 0644]