]> ToastFreeware Gitweb - philipp/winterrodeln/wrapp.git/commitdiff
Suggest easier reverse proxy configuration.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Mon, 12 Jun 2023 18:58:01 +0000 (20:58 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Mon, 12 Jun 2023 18:58:01 +0000 (20:58 +0200)
readme.md

index bd48a6468d51a7e97a4ca9db854f96da0b1b665e..9381a9d39589525cf01ab5690b1f231c1f48560d 100644 (file)
--- a/readme.md
+++ b/readme.md
@@ -24,12 +24,10 @@ You might put it to a file called .env in order to make it available via the Vit
 * Run `npm run build` to create a dist folder that just has to be delivered by a web server.
 * To be able to interact with a local MediaWiki server, use an apache proxy configuration, e.g.
 
-      <Directory /home/philipp/projects/winterrodeln/mediawiki>
-      RewriteEngine On
-      RewriteBase "/winterrodeln/"
-      RewriteRule "^wrapp/(.*)$" "http://localhost:3000/winterrodeln/wrapp/$1" [P]
-      </Directory>
-      ProxyPassReverse /winterrodeln/wrapp/ http://localhost:3000/
+    <Location /winterrodeln/wrapp>
+        ProxyPass http://localhost:3000/winterrodeln/wrapp
+        ProxyPassReverse http://localhost:3000/winterrodeln/wrapp
+    </Location>
 
   start the Vite server with `npm run dev -- --base /winterrodeln/wrapp` and use http://localhost/winterrodeln/wrapp instead of http://localhost:3000/ to access the server.