Skip to content

Admin interface not loading #6964

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rmattes opened this issue Apr 24, 2025 · 2 comments
Open

Admin interface not loading #6964

rmattes opened this issue Apr 24, 2025 · 2 comments

Comments

@rmattes
Copy link

rmattes commented Apr 24, 2025

Describe the bug
We installed Etherpad-Lite behind an Apache reverse proxy in a subpath (/etherpad). The admin interface (/etherpad/admin) does not load because it references JavaScript and CSS from the wrong path (/admin/assets/... instead of /etherpad/admin/assets/...)

Server (please complete the following information):

  • Etherpad version: Github / develop branch
  • OS: Debain Bookworm
  • Node.js version: v18.19.0
  • npm version: 10.8.0
  • Is the server free of plugins: yes
@SamTV12345
Copy link
Member

You need to use the correct headers like X-Forwarded for. We have this in our nginx configuration

location /pad/admin {
    rewrite         /pad/admin/(.*) /admin/$1 break;
    proxy_redirect  / /pad/;
proxy_set_header   X-Proxy-Path /pad;
    proxy_pass         http://127.0.0.1:9001;

    proxy_buffering    off; # be careful, this line doesn't override any proxy_buffering on set in a conf.d/file.conf
    proxy_set_header   Host $host;
    proxy_pass_header  Server;

    # Note you might want to pass more headers etc too. See above configs.
}

@rmattes
Copy link
Author

rmattes commented Apr 26, 2025

Thank you, yes this resolved my initial problem - assets load fine. Admin interface still doesn't work, the browser can't establish a websocket connection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants