update nginx for routing api

This commit is contained in:
2025-11-18 23:36:55 +00:00
parent 2eb7fe424c
commit cd3e0492b7
2 changed files with 5 additions and 2 deletions

View File

@@ -11,8 +11,7 @@
<title>AF</title> <title>AF</title>
<link rel="icon" type="img/x-icon" href="img/favicon.ico" /> <link rel="icon" type="img/x-icon" href="img/favicon.ico" />
</head> </head>
>
<p>Stay here please...</p>
<h1>Shrines</h1> <h1>Shrines</h1>
<a href="shrines/evangelion.html">Evangelion</a> <a href="shrines/evangelion.html">Evangelion</a>

View File

@@ -24,6 +24,10 @@ http {
root /var/www/certbot; root /var/www/certbot;
} }
location = /posts {
return 301 /posts/;
}
location /posts/ { location /posts/ {
proxy_pass http://localhost:8080/posts; proxy_pass http://localhost:8080/posts;
proxy_set_header Host $host; proxy_set_header Host $host;