2 root * /home/USERNAME/status.site.example/public
9 path_regexp jsonld \.jsonld$
14 not path_regexp \.jsonld$
18 expression {re.matcher.suffix} == ""
23 header Link </about.jsonld>;rel=meta;type="application/ld+json"
27 rewrite * /.about.html
28 header Link </about.jsonld>;rel=meta;type="application/ld+json"
33 rewrite /about.jsonld /about/index.jsonld
36 rewrite * /.statuses.html
37 header Link </statuses.jsonld>;rel=meta;type="application/ld+json"
40 redir /statuses/ /statuses
42 rewrite /statuses.jsonld /statuses/index.jsonld
45 path_regexp matcher ^/statuses/(?P<ym>\d{4}-\d{2})(?P<suffix>/[^/.]+)?(?:\..*|/)?$
46 not path_regexp ^/statuses/index[/.]?
52 rewrite * /.topic.html
53 header Link </statuses/{re.matcher.ym}.jsonld>;rel=meta;type="application/ld+json"
57 redir * /statuses/{re.matcher.ym}
61 rewrite * /statuses/{re.matcher.ym}/index.jsonld
67 rewrite * /.status.html
68 header Link </statuses/{re.matcher.ym}.jsonld>;rel=meta;type="application/ld+json"
72 redir * /statuses/{re.matcher.ym}{re.matcher.suffix}
78 rewrite * /.topics.html
79 header Link </topics.jsonld>;rel=meta;type="application/ld+json"
82 redir /topics/ /topics
84 rewrite /topics.jsonld /topics/index.jsonld
87 path_regexp matcher ^/topics/(?P<topic>[0-9A-Za-z_-]+)(?P<suffix>/[^/.]+)?(?:\..*|/)?$
88 not path_regexp ^/topics/index[/.]?
94 rewrite * /.topic.html
95 header Link </topics/{re.matcher.topic}.jsonld>;rel=meta;type="application/ld+json"
99 redir * /topics/{re.matcher.topic}
103 rewrite * /topics/{re.matcher.topic}/index.jsonld
109 rewrite * /.status.html
110 header Link </topics/{re.matcher.topic}.jsonld>;rel=meta;type="application/ld+json"
114 redir * /topics/{re.matcher.topic}{re.matcher.suffix}
119 header Access-Control-Allow-Origin "*"
122 index index.xml index.xhtml index.html index.rdf index.txt