2 root * /home/USERNAME/status.site.example/public
9 path_regexp jsonld \.jsonld$
14 not path_regexp \.jsonld$
18 expression {re.matcher.suffix} == ""
22 rewrite * /.about.html
23 header Link </about.jsonld>;rel=meta;type="application/ld+json"
28 rewrite /about.jsonld /about/index.jsonld
31 rewrite * /.statuses.html
32 header Link </statuses.jsonld>;rel=meta;type="application/ld+json"
36 path_regexp matcher ^/statuses/(?P<path>.*)
37 not path_regexp ^/statuses/index\.
46 redir * /{re.matcher.path}
50 rewrite /statuses.jsonld /statuses/index.jsonld
53 path_regexp matcher ^/(?P<ym>\d{4}-\d{2})(?P<suffix>/[^/.]+)?(?:\..*|/)?$
59 rewrite * /.topic.html
60 header Link </{re.matcher.ym}.jsonld>;rel=meta;type="application/ld+json"
64 redir * /{re.matcher.ym}
68 rewrite * /{re.matcher.ym}/index.jsonld
74 rewrite * /.status.html
75 header Link </{re.matcher.ym}.jsonld>;rel=meta;type="application/ld+json"
79 redir * /{re.matcher.ym}{re.matcher.suffix}
85 rewrite * /.topics.html
86 header Link </topics.jsonld>;rel=meta;type="application/ld+json"
89 redir /topics/ /topics
91 rewrite /topics.jsonld /topics/index.jsonld
94 path_regexp matcher ^/(?:topics/(?P<topic>[0-9A-Za-z_-]+))(?P<suffix>/[^/.]+)?(?:\..*|/)?$
95 not path_regexp ^/topics/index[/.]?
101 rewrite * /.topic.html
102 header Link </topics/{re.matcher.topic}.jsonld>;rel=meta;type="application/ld+json"
106 redir * /topics/{re.matcher.topic}
110 rewrite * /topics/{re.matcher.topic}/index.jsonld
116 rewrite * /.status.html
117 header Link </topics/{re.matcher.topic}.jsonld>;rel=meta;type="application/ld+json"
121 redir * /topics/{re.matcher.topic}{re.matcher.suffix}
126 header Access-Control-Allow-Origin "*"
129 index index.xml index.xhtml index.html index.rdf index.txt