For my application, I use Let's Encrypt for my ssl certificate validating using the .well-known. I define the web application for well-known with a simple deployment descriptor.
<?xml version="1.0" encoding="UTF-8"?>
<Configure class="org.eclipse.jetty.server.handler.ContextHandler">
<Set name="contextPath">/.well-known</Set>
<New class="org.eclipse.jetty.server.handler.ResourceHandler">
<Set name="resourceBase"><SystemProperty name="jetty.base" default="."/>/code/well-known</Set>
<Set name="directoriesListed">false</Set>
The /code/well-known in jetty base is a symbolic link to the actual folder containing any files to be deployed. When I upgraded from Jetty 9.4 to Jetty 11, this no longer works. When trying to access any files under the .well-known path I am getting a 404.
URI: | /.well-known/A |
---|
STATUS: | 404 |
---|
MESSAGE: | Not Found |
---|
SERVLET: | default |
---|
If I change the resourceBase to be the actual path without a symbolic link, everything works fine.
Has anyone else run in to this problem? Is there a configuration that I can change to allow this or is this a bug in the newer version of Jetty? If it is a bug, can someone point me at it so I can keep track of any resolution.
Scott