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&nbsp; &#8679;</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/&nbsp;</a></td><td class="lastmodified">11.02.2023, 13:32:12&nbsp;</td><td class="size">4.096 bytes&nbsp;</td></tr>
<tr><td class="name"><a href="/chat/">chat/&nbsp;</a></td><td class="lastmodified">01.12.2022, 11:06:52&nbsp;</td><td class="size">4.096 bytes&nbsp;</td></tr>
<tr><td class="name"><a href="/dba/">dba/&nbsp;</a></td><td class="lastmodified">01.12.2022, 11:06:52&nbsp;</td><td class="size">4.096 bytes&nbsp;</td></tr>
<tr><td class="name"><a href="/restxq/">restxq/&nbsp;</a></td><td class="lastmodified">10.02.2023, 12:35:22&nbsp;</td><td class="size">4.096 bytes&nbsp;</td></tr>
<tr><td class="name"><a href="/restxq.xqm">restxq.xqm&nbsp;</a></td><td class="lastmodified">29.07.2022, 13:41:16&nbsp;</td><td class="size">2.492 bytes&nbsp;</td></tr>
<tr><td class="name"><a href="/static/">static/&nbsp;</a></td><td class="lastmodified">01.12.2022, 11:06:52&nbsp;</td><td class="size">4.096 bytes&nbsp;</td></tr>
<tr><td class="name"><a href="/WEB-INF/">WEB-INF/&nbsp;</a></td><td class="lastmodified">10.02.2023, 16:19:26&nbsp;</td><td class="size">4.096 bytes&nbsp;</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