Skip to content

Commit 6ec33f4

Browse files
authored
Merge pull request #3884 from adjokic/patch-1
Update README on using websockets with Apache as a reverse proxy
2 parents bb0cc1b + 9fbf57b commit 6ec33f4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

readme.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,15 @@ For this to work you must enable at least the following mods using `a2enmod`:
165165
</IfModule>
166166
```
167167

168+
If using Apache >= 2.4.47 you can use the following, without having to use any of the `RewriteEngine`, `RewriteCond`, or `RewriteRule` directives. For example:
169+
```xml
170+
<Location /audiobookshelf>
171+
ProxyPreserveHost on
172+
ProxyPass http://localhost:<audiobookshelf_port>/audiobookshelf upgrade=websocket
173+
ProxyPassReverse http://localhost:<audiobookshelf_port>/audiobookshelf
174+
</Location>
175+
```
176+
168177
Some SSL certificates like those signed by Let's Encrypt require ACME validation. To allow Let's Encrypt to write and confirm the ACME challenge, edit your VirtualHost definition to prevent proxying traffic that queries `/.well-known` and instead serve that directly:
169178

170179
```bash

0 commit comments

Comments
 (0)