|
|
@@ -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>
|
|
|
+```
|