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

Absolute file path reference causes path base ingress fail #ingress #rewrite-target-regex #ImplementationSpecific #2921

Open
damoshushu opened this issue Feb 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@damoshushu
Copy link

Issue description

Hi Apisix Team,

I am trying to config the ingress of dashboard service as following, however I found that accessing the dashboard page failed with an error. It is because the files referenced in the main page are using absolute path.

dashboard:
  enabled: true
  ingress:
    enabled: true
    className: apisix
    annotations:
      k8s.apisix.apache.org/rewrite-target-regex: "/dashboard/(.*)"
      k8s.apisix.apache.org/rewrite-target-regex-template: "/$1"
    hosts:
    - host: apisix-dashboard.local
      paths: &dashboard_paths
        - "/dashboard"
        - "/dashboard/*"
    - host: www.xxx.io
      paths: *dashboard_paths

image

Expected behavior

relative path is expected to be used, and it should support path based ingress rule

How to Reproduce

deploy the ingress with a specified path rather than "/"

Screenshots

No response

Environment

  • apisix version (cmd: apisix version):
  • OS (cmd: uname -a):
  • OpenResty / Nginx version (cmd: nginx -V or openresty -V):
  • etcd version, if have (cmd: run etcd --version):
  • apisix-dashboard version, if have:
  • Browser version, if have:

Additional context

No response

@damoshushu damoshushu added the bug Something isn't working label Feb 2, 2024
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
None yet
Development

No branches or pull requests

1 participant