[PR #3884] [MERGED] Update README on using websockets with Apache as a reverse proxy #4110

Closed
opened 2026-04-25 00:18:21 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/3884
Author: @adjokic
Created: 1/23/2025
Status: Merged
Merged: 1/25/2025
Merged by: @advplyr

Base: masterHead: patch-1


📝 Commits (1)

  • 9fbf57b Update README on using websockets with Apache as a reverse proxy

📊 Changes

1 file changed (+9 additions, -0 deletions)

View changed files

📝 readme.md (+9 -0)

📄 Description

Brief summary

Updates README and gives an example on how to make websockets work using Apache as a reverse proxy.

Which issue is fixed?

#3810 - updating README

In-depth Description

After PR #3810, one comment proposes to update the README to say RewriteRule (.*)/audiobookshelf/?(.*) "ws://127.0.0.1:<audiobookshelf_port>/audiobookshelf/$2" [P,L]. However, this did not work for me.
Also, it looks like other users are seeing issues with setting up web sockets too using the latest version, but it is not clear if the proposal above was tried.

How have you tested this?

On Apache 2.4.62, with the following configuration:
<Location /audiobookshelf>
ProxyPreserveHost on
ProxyPass http://${my_docker_host}:80/audiobookshelf upgrade=websocket
ProxyPassReverse http://${my_docker_host>:80/audiobookshelf

Screenshots


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/3884 **Author:** [@adjokic](https://github.com/adjokic) **Created:** 1/23/2025 **Status:** ✅ Merged **Merged:** 1/25/2025 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`9fbf57b`](https://github.com/advplyr/audiobookshelf/commit/9fbf57bbefeb0ed5074a392e0b86bf680ec5055c) Update README on using websockets with Apache as a reverse proxy ### 📊 Changes **1 file changed** (+9 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `readme.md` (+9 -0) </details> ### 📄 Description <!-- For Work In Progress Pull Requests, please use the Draft PR feature, see https://github.blog/2019-02-14-introducing-draft-pull-requests/ for further details. If you do not follow this template, the PR may be closed without review. Please ensure all checks pass. If you are a new contributor, the workflows will need to be manually approved before they run. --> ## Brief summary <!-- Please provide a brief summary of what your PR attempts to achieve. --> Updates README and gives an example on how to make websockets work using Apache as a reverse proxy. ## Which issue is fixed? <!-- Which issue number does this PR fix? Ex: "Fixes #1234" --> #3810 - updating README ## In-depth Description <!-- Describe your solution in more depth. How does it work? Why is this the best solution? Does it solve a problem that affects multiple users or is this an edge case for your setup? --> After PR #3810, one [comment](https://github.com/advplyr/audiobookshelf/pull/3810#issuecomment-2605357722) proposes to update the README to say `RewriteRule (.*)/audiobookshelf/?(.*) "ws://127.0.0.1:<audiobookshelf_port>/audiobookshelf/$2" [P,L]`. However, this did not work for me. Also, it looks like [other users](https://github.com/advplyr/audiobookshelf/issues/3868) are seeing issues with setting up web sockets too using the latest version, but it is not clear if the proposal above was tried. ## How have you tested this? <!-- Please describe in detail with reproducible steps how you tested your changes. --> On Apache 2.4.62, with the following configuration: <Location /audiobookshelf> ProxyPreserveHost on ProxyPass http://${my_docker_host}:80/audiobookshelf upgrade=websocket ProxyPassReverse http://${my_docker_host>:80/audiobookshelf </Location> ## Screenshots <!-- If your PR includes any changes to the web client, please include screenshots or a short video from before and after your changes. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:18:21 +02:00
adam closed this issue 2026-04-25 00:18:21 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#4110