From 75a8906d4aa1c758bc54458b44d979c4da960a27 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Mon, 14 Mar 2022 17:18:18 +0100 Subject: [PATCH] modrewrite proxy added --- public/.htaccess | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/.htaccess b/public/.htaccess index c6aeead..953d993 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -6,8 +6,12 @@ DirectoryIndex noindex RewriteEngine On RewriteBase / + + RewriteRule ^/?api/(.*)$ http://tibi-server:8080/api/v1/_/__NAMESPACE__/$1 [P,QSA,L] + RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule ^/?(.*)$ http://tibi-server:8080/api/v1/_/__NAMESPACE__/ssr?token=__SSR_TOKEN__&url=/$1 [P,QSA,L] #RewriteRule (.*) /spa.html [QSA,L]