diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-06-27 23:39:31 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-06-27 23:39:31 +0900 |
| commit | 674fe965550444db87edc7937ff6932e1a918d9d (patch) | |
| tree | e8a80dd958d3e082485286bf5785a7992b6e6b0e /vhosts/blog/nginx.conf | |
| parent | fe4d1d625b53796c5f20399790e5ff8c7a7e1608 (diff) | |
| download | nsfisis.dev-674fe965550444db87edc7937ff6932e1a918d9d.tar.gz nsfisis.dev-674fe965550444db87edc7937ff6932e1a918d9d.tar.zst nsfisis.dev-674fe965550444db87edc7937ff6932e1a918d9d.zip | |
feat(meta): rename vhosts/ directory to services/
Diffstat (limited to 'vhosts/blog/nginx.conf')
| -rw-r--r-- | vhosts/blog/nginx.conf | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/vhosts/blog/nginx.conf b/vhosts/blog/nginx.conf deleted file mode 100644 index eb1d9136..00000000 --- a/vhosts/blog/nginx.conf +++ /dev/null @@ -1,41 +0,0 @@ -server { - listen 8001 default; - listen [::]:8001; - - location / { - root /public; - - location ~* ^.*/atom\.xml$ { - types { } - default_type "application/atom+xml; charset=utf-8"; - } - - location ~* \.mjs$ { - types { } - default_type "application/javascript; charset=utf-8"; - } - } - - error_page 404 /404.html; - - # Redirect to canonical path. - rewrite ^/posts/1/?$ /posts/ permanent; - - # Old URL patterns. - rewrite ^/posts/(my-first-post)/?$ /posts/2021-03-05/$1/ permanent; - rewrite ^/posts/(phperkaigi-2021)/?$ /posts/2021-03-30/$1/ permanent; - rewrite ^/posts/(cpp-you-can-use-keywords-in-attributes)/?$ /posts/2021-10-02/$1/ permanent; - rewrite ^/posts/(python-unbound-local-error)/?$ /posts/2021-10-02/$1/ permanent; - rewrite ^/posts/(ruby-detect-running-implementation)/?$ /posts/2021-10-02/$1/ permanent; - rewrite ^/posts/(ruby-then-keyword-and-case-in)/?$ /posts/2021-10-02/$1/ permanent; - rewrite ^/posts/(rust-where-are-primitive-types-from)/?$ /posts/2021-10-02/$1/ permanent; - rewrite ^/posts/(vim-difference-between-autocmd-bufwrite-and-bufwritepre)/?$ /posts/2021-10-02/$1/ permanent; - rewrite ^/posts/(vim-swap-order-of-selected-lines)/?$ /posts/2021-10-02/$1/ permanent; - rewrite ^/posts/(phperkaigi-2022-tokens)/?$ /posts/2022-04-09/$1/ permanent; - - # I mistakenly wrote 2023 in the URL instead of 2024. - rewrite ^/posts/2023-01-10/(neovim-insert-namespace-declaration-to-empty-php-file)/?$ /posts/2024-01-10/$1/ permanent; - - # Renamed posts. - rewrite ^/posts/2024-03-20/todos-in-my-life/?$ /posts/2024-03-20/my-bucket-list/ permanent; -} |
