diff options
| author | 2020-04-21 20:11:34 +0200 | |
|---|---|---|
| committer | 2020-04-21 20:11:34 +0200 | |
| commit | bb3c35401cdaaad42007b21e557ee4639bb4350c (patch) | |
| tree | 99347060b3bcd3cac57de7d92a60b8e82ccdf367 /Docker/README.md | |
| parent | e2c8e73c2c6c5d89f5d91a24533e16f6d0c9db55 (diff) | |
#2671 Apache reverse proxy (#2919)
* #2671 Apache reverse proxy
Adding sample configuration for using apache as a reverse proxy
* Update Docker/README.md
Better wording
Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com>
* Update Docker/README.md
Better wording
Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com>
* Included suggestions and cleaned up code
I have cleaned the code with the <location> Tags so that it is more concise
* Included corrections
* Update Docker/README.md
Minor port number
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'Docker/README.md')
| -rw-r--r-- | Docker/README.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Docker/README.md b/Docker/README.md index 92f13bcf3..bc8860e46 100644 --- a/Docker/README.md +++ b/Docker/README.md @@ -351,3 +351,20 @@ server { } } ``` +### Alternative reverse proxy using [Apache 2.4](https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html) + +Here is an example of a configuration file for running FreshRSS behind an Apache reverse proxy (as a subdirectory). +You need a working SSL configuration and the Apache modules `proxy`, `proxy_http` and and `headers`installed (depends on your distribution) and enabled (```a2enmod proxy proxy_http headers```). + +``` +ProxyPreserveHost On + +<Location /freshrss/> + ProxyPass http://127.0.0.1:8080/ + ProxyPassReverse http://127.0.0.1:8080/ + RequestHeader set X-Forwarded-Prefix "/freshrss" + RequestHeader set X-Forwarded-Proto "https" + Require all granted + Options none +</Location> +``` |
