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

[Feature Request] URL rewrite functionality? #3111

Closed
4 of 11 tasks
shouldsee opened this issue Sep 28, 2022 · 2 comments
Closed
4 of 11 tasks

[Feature Request] URL rewrite functionality? #3111

shouldsee opened this issue Sep 28, 2022 · 2 comments
Milestone

Comments

@shouldsee
Copy link

shouldsee commented Sep 28, 2022

Describe the feature request

Wants to rewrite a the url in a proxied HTTP request, as one would do in nginx. This is useful when mounting application to a url_prefix. I am not very familiar with HTTP but at the very basic the url needs to be recovered to remove the /${base_url} in the proxyed url?

Describe alternatives you've considered

nginx way to mount supervisor interface at 8999. as from Supervisor/supervisor#29

location /supervisor {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    # hack the host https://github.com/Supervisor/supervisor/issues/251
    proxy_set_header Host $http_host/supervisor/index.html;
    proxy_redirect off;
    rewrite ^/supervisor(.*)$ /$1 break;
    proxy_pass http://127.0.0.1:8999/;
}

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
@fatedier
Copy link
Owner

It can be supported in frp v2 future.

@fatedier fatedier added this to the v2 milestone Sep 29, 2022
@github-actions
Copy link

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants