diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-12-12 17:07:16 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-12-12 17:07:16 +0800 |
commit | 51265f08cb9b19ebb01375d05057fdbc338b6355 (patch) | |
tree | 8f02e0c2cab0e0772655133cd67d221594753936 /nginx | |
parent | 015923746c4d3db65cb7eef3327b34532a7c1ae9 (diff) |
add build for rss feeds
Diffstat (limited to 'nginx')
-rw-r--r-- | nginx/sites-available/vps | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/nginx/sites-available/vps b/nginx/sites-available/vps index afc5714..b2e40f2 100644 --- a/nginx/sites-available/vps +++ b/nginx/sites-available/vps | |||
@@ -76,6 +76,10 @@ server { | |||
76 | error_log /tmp/cgi info; | 76 | error_log /tmp/cgi info; |
77 | } | 77 | } |
78 | 78 | ||
79 | location ^~ /links/feeds/ { | ||
80 | alias /srv/rss/feeds/; | ||
81 | } | ||
82 | |||
79 | location ~ [^/]$ { | 83 | location ~ [^/]$ { |
80 | try_files $uri @rewrite_no_slash; | 84 | try_files $uri @rewrite_no_slash; |
81 | } | 85 | } |
@@ -85,13 +89,13 @@ server { | |||
85 | rewrite ^(.+)$ $1.html permanent; | 89 | rewrite ^(.+)$ $1.html permanent; |
86 | } | 90 | } |
87 | 91 | ||
88 | location ~ /$ { | 92 | #location ~ /$ { |
89 | try_files $uri @rewrite_slash; | 93 | # try_files $uri @rewrite_slash; |
90 | } | 94 | #} |
91 | 95 | ||
92 | location @rewrite_slash { | 96 | #location @rewrite_slash { |
93 | rewrite ^(.+)/$ $1.html permanent; | 97 | # rewrite ^(.+)/$ $1.html permanent; |
94 | } | 98 | #} |
95 | 99 | ||
96 | rewrite ^/posts$ /posts/ permanent; | 100 | rewrite ^/posts$ /posts/ permanent; |
97 | location = /posts/ { | 101 | location = /posts/ { |