update nginx for routing api
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user