Merge pull request #260 from neobooru/docs-update

docs: Add apache configuration to manual install guide
This commit is contained in:
Shyam Sunder 2019-05-14 10:22:10 -04:00 committed by GitHub
commit bbde0ab9a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,9 +169,12 @@ In this example:
- The booru is accessed from `http://example.com/` - The booru is accessed from `http://example.com/`
- The API is accessed from `http://example.com/api` - 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` - 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 configuration**:
```nginx ```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`**: **`config.yaml`**:
```yaml ```yaml