[GH-ISSUE #2301] Cannot set webBasePath from CLI #1575

Closed
opened 2026-10-31 20:19:44 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @MaisamV on GitHub (May 24, 2024).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/2301

Welcome

  • Yes, I'm using the latest major release. Only such installations are supported.
  • Yes, I'm using the supported system. Only such systems are supported.
  • Yes, I have read all WIKI document,nothing can help me in my problem.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, log, etc).

Description of the problem,screencshot would be good

"/usr/local/x-ui/x-ui setting -webBasePath /a-path/" command is meant to change panel base URI but when the command executed, nothing changes.
After reading the related codes I've found that the value of webBasePath ignored in code.
I've already created a pull request to fix this.

Version of 3x-ui

/usr/local/x-ui/x-ui -v
2.3.4

x-ui log reports or xray log

executed commands

/usr/local/x-ui/x-ui setting -webBasePath /test/
/usr/local/x-ui/x-ui setting -show

output

current panel settings as follows:
username: xxxx
userpasswd: xxxx
port: xxxx
webBasePath: /

expected output

current panel settings as follows:
username: xxxx
userpasswd: xxxx
port: xxxx
webBasePath: /test/
Originally created by @MaisamV on GitHub (May 24, 2024). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/2301 ### Welcome - [X] Yes, I'm using the latest major release. Only such installations are supported. - [X] Yes, I'm using the supported system. Only such systems are supported. - [X] Yes, I have read all WIKI document,nothing can help me in my problem. - [X] Yes, I've searched similar issues on GitHub and didn't find any. - [X] Yes, I've included all information below (version, config, log, etc). ### Description of the problem,screencshot would be good "/usr/local/x-ui/x-ui setting -webBasePath /a-path/" command is meant to change panel base URI but when the command executed, nothing changes. After reading the related codes I've found that the value of webBasePath ignored in code. I've already created a [pull request](https://github.com/MHSanaei/3x-ui/issues/2300) to fix this. ### Version of 3x-ui <details> ```console /usr/local/x-ui/x-ui -v 2.3.4 ``` </details> ### x-ui log reports or xray log **executed commands** ```console /usr/local/x-ui/x-ui setting -webBasePath /test/ /usr/local/x-ui/x-ui setting -show ``` **output** ```console current panel settings as follows: username: xxxx userpasswd: xxxx port: xxxx webBasePath: / ``` **expected output** ```console current panel settings as follows: username: xxxx userpasswd: xxxx port: xxxx webBasePath: /test/ ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#1575
No description provided.