Merge pull request #260 from neobooru/docs-update
docs: Add apache configuration to manual install guide
This commit is contained in:
commit
bbde0ab9a0
1 changed files with 21 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue