From a23008c390017b728dd0d77296a7a0f36d3f6266 Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Fri, 20 Sep 2019 18:01:33 -0300 Subject: [PATCH] better routing --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d9be28b..d4d4c07 100644 --- a/Dockerfile +++ b/Dockerfile @@ -56,8 +56,13 @@ RUN \ '{ \ "listeners": { "*:8080": { "pass": "routes" } }, \ "routes": [ \ - { "match": { "uri": "*.php" }, "action": { "pass": "applications/direct_php" } }, \ - { "match": { "uri": "!*/" }, "action": { "share": "/var/www/html" } }, \ + { "match": { "uri": "/wp-*.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/xmlrpc.php" }, "action": { "pass": "applications/direct_php" } }, \ + { "match": { "uri": "/wp-admin*" }, "action": { "share": "/var/www/html" } }, \ + { "match": { "uri": "/wp-content*" }, "action": { "share": "/var/www/html" } }, \ + { "match": { "uri": "/wp-includes*" }, "action": { "share": "/var/www/html" } }, \ + { "match": { "uri": "/favicon.ico" }, "action": { "share": "/var/www/html" } }, \ + { "match": { "uri": "/robots.txt" }, "action": { "share": "/var/www/html" } }, \ { "action": { "pass": "applications/index_php" } } \ ], \ "applications": { \