Tomcat 9 scenarios to Serve Static Resources from a Custom Directory with 404 Errors
I'm working on a personal project and I'm working with an scenario where Tomcat 9 is unable to serve static resources from a custom directory I've configured in my `server.xml`... Despite setting up the context correctly, I keep getting 404 errors when trying to access files. My `server.xml` includes an entry like this: ```xml <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Context path="/static" docBase="/path/to/my/static/resources" /> </Host> ``` I've double-checked the file permissions and confirmed that the directory contains the files I'm trying to serve. However, when I try to access `http://localhost:8080/static/myfile.txt`, I get a 404 behavior. Additionally, I've tried deploying a simple web application that serves static content directly from the `webapps` directory, and that works perfectly. I also verified Tomcat's `catalina.out` log file for any relevant behavior messages, but there seems to be nothing indicating an scenario. I followed several online tutorials and documentation, but I must be missing something in my configuration. Is there a specific setting I need to adjust for Tomcat to correctly recognize and serve files from a custom directory? Any help would be greatly appreciated!