From e471d6ad2e6e6b52fc4d94b36e93f2fe93224beb Mon Sep 17 00:00:00 2001 From: neobooru <50623835+neobooru@users.noreply.github.com> Date: Tue, 14 May 2019 16:11:28 +0200 Subject: [PATCH] Add apache configuration to manual install guide --- INSTALL-OLD.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/INSTALL-OLD.md b/INSTALL-OLD.md index 1cb24294..b092c3ca 100644 --- a/INSTALL-OLD.md +++ b/INSTALL-OLD.md @@ -169,9 +169,12 @@ In this example: - The booru is accessed from `http://example.com/` - The API is accessed from `http://example.com/api` -- The API server listens locally on port 6666, and is proxied by nginx +- The API server listens locally on port 6666, and is proxied by nginx or apache - The static files are served from `/srv/www/booru/client/public/data` +You can use either nginx or apache to serve your static content and proxy the api server. +Choose whichever you prefer, but don't use both. + **nginx configuration**: ```nginx @@ -194,6 +197,23 @@ server { } ``` +**apache configuration**: + +```apache + + ServerName example.com + + Redirect 302 /api /api/ + + ProxyPreserveHost On + ProxyPass /api/ http://127.0.0.1:6666/ + ProxyPassReverse /api/ http://127.0.0.1:6666/ + + DocumentRoot "/srv/www/booru/client/public" + FallbackResource /index.htm + +``` + **`config.yaml`**: ```yaml