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

Can janus proxy a web page instead of an single target url #417

Open
chenliejun opened this issue Sep 8, 2019 · 0 comments
Open

Can janus proxy a web page instead of an single target url #417

chenliejun opened this issue Sep 8, 2019 · 0 comments

Comments

@chenliejun
Copy link

[Short description of problem here]

I am thinking:janus as an api gateway to proxy upstream api serice,can it proxy the total web page with sub request of css、js、png so on.

Reproduction Steps:

  1. [First Step]
    Create an API Definition with
    Set the listen_path as :/something,
    Set the upstream target as: http://my.private.blogsite.com(some real blog site)
  2. [Second Step]
    visit http://localhost:8080/something
  3. [Other Steps...]
    got the page with single html,but the page's css、js、png got the 404 response(which are the request in the html some like:/css/blog.css、/js/jquery-1.11.3.min.js、/img/favicon.png)

Expected behavior:
proxy all the regular target ,just like nginx.as so the css、png、js can also be proxied

[Describe expected behavior here]
can the upstream target can be set with the same rule as listen_path,es:http://my.private.blogsite.com/*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant