[GH-ISSUE #809] Configuration entry server.BaseUrl does not take effect nor have associated document #428

Closed
opened 2026-02-26 12:08:19 +03:00 by kerem · 1 comment
Owner

Originally created by @garylavayou on GitHub (Jan 9, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/809

Describe the bug

There is an empty configuration item BaseUrl in the server section of the default configuration file (/usr/local/etc/nginx-ui/app.ini). Configuring it with a base URL path will not influence the access URL, i.e., I still access the service via http://ip_address:9000.

Also, there is no document about this configuration item.

To Reproduce
Steps to reproduce the behavior:

  1. edit /usr/local/etc/nginx-ui/app.ini, set BaseUrl = /conf/nginx.

    [server]
    Port    = 9000
    BaseUrl = /conf/nginx
    
  2. restart nginx-ui via systemctl restart nginx-ui.

  3. access the service from browser with URL: http://ip_address:9000/conf/nginx.

  4. See error 404 Not Found with response body:

    {
        "message": "not found"
    }
    

Expected behavior

The service should be accessible from http://ip_address:9000/conf/nginx, or remove the item from configuration item if it is not applicable.

Info (please complete the following information):

  • Server OS: Kylin 4.0.2 (debian)
  • Server Arch: aach64
  • Nginx UI Version: 2.0.0-beta.42
  • Your Browser: Edge 126
Originally created by @garylavayou on GitHub (Jan 9, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/809 **Describe the bug** There is an empty configuration item `BaseUrl` in the `server` section of the default configuration file (`/usr/local/etc/nginx-ui/app.ini`). Configuring it with a base URL path will not influence the access URL, i.e., I still access the service via `http://ip_address:9000`. Also, there is no document about this configuration item. **To Reproduce** Steps to reproduce the behavior: 1. edit `/usr/local/etc/nginx-ui/app.ini`, set `BaseUrl = /conf/nginx`. ```ini [server] Port = 9000 BaseUrl = /conf/nginx ``` 2. restart nginx-ui via `systemctl restart nginx-ui`. 3. access the service from browser with URL: `http://ip_address:9000/conf/nginx`. 4. See error `404 Not Found` with response body: ```json { "message": "not found" } ``` **Expected behavior** The service should be accessible from `http://ip_address:9000/conf/nginx`, or remove the item from configuration item if it is not applicable. **Info (please complete the following information):** - Server OS: Kylin 4.0.2 (debian) - Server Arch: aach64 - Nginx UI Version: 2.0.0-beta.42 - Your Browser: Edge 126
kerem 2026-02-26 12:08:19 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@0xJacky commented on GitHub (Jan 9, 2025):

Hi @garylavayou, this option is not available in Nginx UI, it's a general settings option of Cosy framework (https://github.com/uozi-tech/cosy). To check the available settings options, please refer to https://nginxui.com/zh_CN/guide/config-server.html for more details.

<!-- gh-comment-id:2579106422 --> @0xJacky commented on GitHub (Jan 9, 2025): Hi @garylavayou, this option is not available in Nginx UI, it's a general settings option of Cosy framework (https://github.com/uozi-tech/cosy). To check the available settings options, please refer to https://nginxui.com/zh_CN/guide/config-server.html for more details.
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
starred/nginx-ui#428
No description provided.