aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShyam Sunder2019-05-14 10:22:10 -0400
committerGitHub2019-05-14 10:22:10 -0400
commitbbde0ab9a069680d3eae514817f037aaa2f20509 (patch)
tree01ff96006d04f2437ca717eb448dbe236b6dd91b
parent765e1a711b7517e54466b0fe046e1b61e271386a (diff)
parente471d6ad2e6e6b52fc4d94b36e93f2fe93224beb (diff)
Merge pull request #260 from neobooru/docs-update
docs: Add apache configuration to manual install guide
-rw-r--r--INSTALL-OLD.md22
1 files changed, 21 insertions, 1 deletions
diff --git a/INSTALL-OLD.md b/INSTALL-OLD.md
index 1cb2429..b092c3c 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
+<VirtualHost *:80>
+ 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
+</VirtualHost>
+```
+
**`config.yaml`**:
```yaml

© 2015 - 2026 Jakob L. Kreuze