404 page
This commit is contained in:
@@ -50,7 +50,7 @@ http {
|
|||||||
ssl_certificate_key /etc/letsencrypt/live/$DOMAIN/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/$DOMAIN/privkey.pem;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ /index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /.well-known/acme-challenge/ {
|
location ~ /.well-known/acme-challenge/ {
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<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" />
|
||||||
<link rel="stylesheet" href="/css/fonts.css" />
|
|
||||||
<link rel="stylesheet" href="/css/styles.css" />
|
<link rel="stylesheet" href="/css/styles.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -17,6 +17,16 @@ const router = createRouter({
|
|||||||
// which is lazy-loaded when the route is visited.
|
// which is lazy-loaded when the route is visited.
|
||||||
component: () => import("../views/CV.vue"),
|
component: () => import("../views/CV.vue"),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/bookmarks",
|
||||||
|
name: "bookmarks",
|
||||||
|
component: () => import("../views/Bookmarks.vue"),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/:pathMatch(.*)*",
|
||||||
|
name: "404",
|
||||||
|
component: () => import("../views/404.vue"),
|
||||||
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ import CurrentlyListening from "@/components/CurrentlyListening.vue";
|
|||||||
<p>Hi im Adam</p>
|
<p>Hi im Adam</p>
|
||||||
|
|
||||||
<h2>cv</h2>
|
<h2>cv</h2>
|
||||||
<RouterLink to="/cv">CV</RouterLink>
|
<RouterLink to="/cv">cv</RouterLink>
|
||||||
|
|
||||||
<h2>bookmarks</h2>
|
<h2>bookmarks</h2>
|
||||||
<a href="/pages/bookmarks.html">bookmarks</a>
|
<RouterLink to="/bookmarks">bookmarks</RouterLink>
|
||||||
|
|
||||||
<CurrentlyListening />
|
<CurrentlyListening />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user