Skip to content
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

Configuration entry server.BaseUrl does not take effect nor have associated document #809

Open
garylavayou opened this issue Jan 9, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@garylavayou
Copy link

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
@garylavayou garylavayou added the bug Something isn't working label Jan 9, 2025
@0xJacky
Copy link
Owner

0xJacky commented 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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants