You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/08/13 09:18:07 UTC

[GitHub] [apisix] TigerGxl opened a new issue #2055: request help: how apisix proxy to static files

TigerGxl opened a new issue #2055:
URL: https://github.com/apache/apisix/issues/2055


   ### Issue description
   
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): 1.5 (by luarocks)
   * OS:Ubuntu 16.04.6
   
   apisix is great to loads api service, now i want to proxy to static file like html without nginx.
   
   this is my conf in etcd
   ![image](https://user-images.githubusercontent.com/32395903/90116590-47e98b00-dd88-11ea-95a8-56b6a5bc8970.png)
   
   What I want to do is when i request "http://demo.apisix.com", apisix loads to "/home/demo80/index.html", run javascript in the html, and now , if i request "http://demo.apisix.com/v1", apisix loads to my backend  "172.16.43.216:5000" and return 404, it's not working,What should I do right?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] membphis closed issue #2055: request help: how apisix proxy to static files

Posted by GitBox <gi...@apache.org>.
membphis closed issue #2055:
URL: https://github.com/apache/apisix/issues/2055


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] membphis commented on issue #2055: request help: how apisix proxy to static files

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #2055:
URL: https://github.com/apache/apisix/issues/2055#issuecomment-673417678


   you can use another Nginx server to provide the static files.
   
   client -> apisix -> nginx(static file)
   client -> apisix -> upstream
   
   create two routes for this case, then it will work fine.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org