Hello,
i successfully installed basex on my raspberry Pi. Now I want my jetty-server to answer with index.html. Currently it shows the subdirectories in directory .../webapp.
cmd: curl https://personal-balance.com
returns:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link href="jetty-dir.css" rel="stylesheet" />
<title>Directory: /</title>
</head>
<body>
<h1 class="title">Directory: /</h1>
<table class="listing">
<thead>
<tr><th class="name"><a
href="?C=N&O=D">Name
⇧</a></th><th
class="lastmodified"><a href="?C=M&O=A">Last
Modified</a></th><th class="size"><a
href="?C=S&O=A">Size</a></th></tr>
</thead>
<tbody>
<tr><td class="name"><a
href="/.logs/">.logs/ </a></td><td
class="lastmodified">11.02.2023,
13:32:12 </td><td class="size">4.096
bytes </td></tr>
<tr><td class="name"><a
href="/chat/">chat/ </a></td><td
class="lastmodified">01.12.2022,
11:06:52 </td><td class="size">4.096
bytes </td></tr>
<tr><td class="name"><a
href="/dba/">dba/ </a></td><td
class="lastmodified">01.12.2022,
11:06:52 </td><td class="size">4.096
bytes </td></tr>
<tr><td class="name"><a
href="/restxq/">restxq/ </a></td><td
class="lastmodified">10.02.2023,
12:35:22 </td><td class="size">4.096
bytes </td></tr>
<tr><td class="name"><a
href="/restxq.xqm">restxq.xqm </a></td><td
class="lastmodified">29.07.2022,
13:41:16 </td><td class="size">2.492
bytes </td></tr>
<tr><td class="name"><a
href="/static/">static/ </a></td><td
class="lastmodified">01.12.2022,
11:06:52 </td><td class="size">4.096
bytes </td></tr>
<tr><td class="name"><a
href="/WEB-INF/">WEB-INF/ </a></td><td
class="lastmodified">10.02.2023,
16:19:26 </td><td class="size">4.096
bytes </td></tr>
</tbody>
</table>
</body></html>
web.xml and jetty.xml in .../webapp/WEB-INF/ are nearly in their original state. I only modified the location of restxq:
<servlet-mapping>
<servlet-name>RESTXQ</servlet-name>
<url-pattern>/restxq/*</url-pattern>
</servlet-mapping>
Kind regards,
Christoph