Repository: quarkusio/quarkus
Issue: Quarkus resource not found on subdir

**Describe the bug**
Quarkus app doesn't serve default index.html resource on subdirs property with prod profile, on subdirs it gives a resource not found

**Expected behavior**
Serve the default index.html on subdirs like is happening launching the app with quarkus:dev

**Actual behavior**
put an  index.html inside src/main/resources/META-INF/resources one ndex.html insede src/main/resources/META-INF/resources/subdir

do a clean package then, run java -jar *-runner.jar then use a broweser to get localhost:8080/subdir responds me resource not found

**Configuration**
i used the rest-json-quickstart to reproduce it

**Environment (please complete the following information):**
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)


Changed files:
extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/StaticResourcesProcessor.java
extensions/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/files/StaticFileWithResourcesTest.java

diff --git a/extensions/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/files/StaticFileWithResourcesTest.java b/extensions/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/files/StaticFileWithResourcesTest.java
index eaa922a350a..2f57a588867 100644
--- a/extensions/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/files/StaticFileWithResourcesTest.java
+++ b/extensions/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/files/StaticFileWithResourcesTest.java
@@ -47,6 +47,10 @@ public void test() {
                 .statusCode(200)
                 .body(containsString("<h1>Hello</h1>"));
 
+        RestAssured.get("/web/").then()
+                .statusCode(200)
+                .body(containsString("<h1>Hello</h1>"));
+
         RestAssured.get("/lorem.txt").then()
                 .statusCode(200)
                 .body(containsString("Lorem"));
diff --git a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/StaticResourcesProcessor.java b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/StaticResourcesProcessor.java
index 609e0b65969..4560c6c7219 100644
--- a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/StaticResourcesProcessor.java
+++ b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/StaticResourcesProcessor.java
@@ -107,9 +107,19 @@ private void collectKnownPaths(Path resource, Set<String> knownPaths) {
                 @Override
                 public FileVisitResult visitFile(Path p, BasicFileAttributes attrs)
                         throws IOException {
+                    String simpleName = p.getFileName().toString();
                     String file = resource.relativize(p).toString();
-                    if (file.equals("index.html") || file.equals("index.htm")) {
-                        knownPaths.add("/");
+                    if (simpleName.equals("index.html") || simpleName.equals("index.htm")) {
+                        Path parent = resource.relativize(p).getParent();
+                        if (parent == null) {
+                            knownPaths.add("/");
+                        } else {
+                            String parentString = parent.toString();
+                            if (!parentString.startsWith("/")) {
+                                parentString = "/" + parentString;
+                            }
+                            knownPaths.add(parentString + "/");
+                        }
                     }
                     if (!file.startsWith("/")) {
                         file = "/" + file;