Support base paths on webadmin #451

Closed
opened 2026-10-05 04:21:45 +02:00 by adam · 6 comments
Owner

As it is now, all the base paths are hard coded to "/", which breaks everything if you try to run the webadmin behind a proxy (eg. nginx) and change the base path.
ie, remapping "http://example.com/znc" to "http://127.0.0.1:6667"

All the CSS, which is assumed to be on "/pub/default.css", actually exists on "/znc/pub/default.css", and links (such as /login), don't route to the right place.

As it is now, all the base paths are hard coded to "/", which breaks everything if you try to run the webadmin behind a proxy (eg. nginx) and change the base path. ie, remapping "http://example.com/znc" to "http://127.0.0.1:6667" All the CSS, which is assumed to be on "/pub/_default_.css", actually exists on "/znc/pub/_default_.css", and links (such as /login), don't route to the right place. <!-- github-sync-id:54035623 -->
adam closed this issue 2026-10-05 04:21:45 +02:00
Author
Owner

Not as of 1.5 (currently unreleased / use nightlies)
https://github.com/znc/znc/commit/4376b373d841253c8a6dac4207567d4661724432

Not as of 1.5 (currently unreleased / use nightlies) https://github.com/znc/znc/commit/4376b373d841253c8a6dac4207567d4661724432 <!-- github-comment-id:69548373 -->
Author
Owner

I just noticed it was a config option for 1.6 on the wiki (along with customizing SSL, yay!).

Is 1.5 the latest release? The wiki says 1.4 is latest.

I just noticed it was a config option for 1.6 on the wiki (along with customizing SSL, yay!). Is 1.5 the latest release? The wiki says 1.4 is latest. <!-- github-comment-id:69599711 -->
Author
Owner

Odd points are development versions, even points are stable releases. 1.4 is the latest stable release, but you can run 1.5 (git/devel) by checking out and compiling the code in this repo.

Odd points are development versions, even points are stable releases. 1.4 is the latest stable release, but you can run 1.5 (git/devel) by checking out and compiling the code in this repo. <!-- github-comment-id:69600091 -->
Author
Owner

ZNC versioning strikes again: https://github.com/znc/znc/issues/748

ZNC versioning strikes again: https://github.com/znc/znc/issues/748 <!-- github-comment-id:69600152 -->
Author
Owner

@jpnurmi http://wiki.znc.in/Configuration#Added_in_1.6 Could just name it "1.5 (git/nightly)" instead of "1.6", since 1.6 is not released yet.

@jpnurmi http://wiki.znc.in/Configuration#Added_in_1.6 Could just name it "1.5 (git/nightly)" instead of "1.6", since 1.6 is not released yet. <!-- github-comment-id:69644275 -->
Author
Owner

Duplicate of #480

Duplicate of #480 <!-- github-comment-id:69652999 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#451