diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-04-01 23:58:05 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-04-02 01:14:27 +0900 |
| commit | 1971766cc231b9f693b904673d79c3dc29b811d1 (patch) | |
| tree | 979043d8e1626a89c2b2d6b47c2e784604ed8d28 /vhosts/blog/docker-compose.yml | |
| parent | 3c8c96ef3313506fd7482d24d0d5d5e348d359ec (diff) | |
| download | nsfisis.dev-1971766cc231b9f693b904673d79c3dc29b811d1.tar.gz nsfisis.dev-1971766cc231b9f693b904673d79c3dc29b811d1.tar.zst nsfisis.dev-1971766cc231b9f693b904673d79c3dc29b811d1.zip | |
fix(blog/proxy): fix an issue where one cannot access to slash-less path
# Problem
Access to `https://blog.nsfisis.dev/foo/bar` was redirected to
`http://127.0.0.1/foo/bar/`.
# Cause
Nginx inside Docker container listened to port 80, but Docker bound the
port to the host's 8001 port. The reverse proxy, mioproxy, was
configured to rewrite `http://127.0.0.1:8001/*` to `https://blog.nsfisis.dev/*`,
which cannot handle `http://127.0.0.1:80/*`.
# Solution
Change the inner port that Nginx listens to to 8001.
Also update mioproxy version.
Diffstat (limited to 'vhosts/blog/docker-compose.yml')
| -rw-r--r-- | vhosts/blog/docker-compose.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vhosts/blog/docker-compose.yml b/vhosts/blog/docker-compose.yml index 1896cc2b..225ad3df 100644 --- a/vhosts/blog/docker-compose.yml +++ b/vhosts/blog/docker-compose.yml @@ -7,7 +7,7 @@ services: - ./nginx.conf:/etc/nginx/conf.d/default.conf - ./public:/public ports: - - '127.0.0.1:8001:80' + - '127.0.0.1:8001:8001' environment: TZ: Asia/Tokyo restart: always |
