]> git.neb.cc Git - xyz.git/commitdiff
Fix trailing slash bug
authorBen Larson <[email protected]>
Wed, 9 Jun 2021 01:25:48 +0000 (20:25 -0500)
committerBen Larson <[email protected]>
Wed, 9 Jun 2021 01:25:48 +0000 (20:25 -0500)
nginx.conf
src/index.html

index c38d18be95012d70fcce700ca0c87b29483bde79..c31793689f1c8d385470735d6c3ee4ae5d3dc6f8 100644 (file)
@@ -21,5 +21,6 @@ http {
         server_name localhost;
         root /usr/share/nginx/html;
         index index.html;
+        try_files $uri $uri/index.html =404;
     }
 }
index 49316a9dc128be8441b7fad462fd3717149c34b5..86c45ad76d622248616baf3f043371e9a47c1b76 100644 (file)
@@ -7,7 +7,7 @@
     />
     <meta charset="UTF-8" />
     <title>Ben Larson</title>
-    <link rel="stylesheet" href="./styles/main.css" />
+    <link rel="stylesheet" href="/styles/main.css" />
   </head>
   <body>
     <header>