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 2022/06/22 03:58:24 UTC

[GitHub] [apisix] 2294648043 opened a new issue, #7302: help request: 代理web静态资源访问的问题

2294648043 opened a new issue, #7302:
URL: https://github.com/apache/apisix/issues/7302

   ### Description
   
   apisix集成对ckman服务进行代理会出现通过地址直接访问静态文件,文件路径将访问不到,通过代理/js/*,/css/*可以访问到登录,但登录后还是会有问题,有没有好的解决方法,在中间加一层nginx配置这样的?
   ![111](https://user-images.githubusercontent.com/42125589/174939921-56b1818e-cb47-4a1b-9985-7000617334cb.png)
   
   
   ### Environment
   
   - APISIX version (2.13):
   - Operating system (linux):
   - OpenResty / Nginx version ( no openresty /nginx 1.17.1):
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

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


[GitHub] [apisix] 2294648043 commented on issue #7302: help request: 代理web静态资源访问的问题

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

   > 推荐使用nginx代理静态资源
   
   ckman通过docker部署,无法通过linux的nginx直接代理其中的静态资源


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] tzssangglass commented on issue #7302: help request: 代理web静态资源访问的问题

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

   see: https://github.com/apache/apisix/issues/4672


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] 2294648043 commented on issue #7302: help request: 代理web静态资源访问的问题

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

   > recommend using nginx to proxy static resources
   按官方的方法代理dashboard就会出现静态资源访问的问题,可以通过监听.jsand.css来访问到,但也会对别的路由造成一定影响,静态文件都在docker容器中,如何进行代理?
   ![微信图片_20220622170810](https://user-images.githubusercontent.com/42125589/174990838-99fe2771-85ba-4fd7-b1dc-e1dfa7844800.png)
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] tzssangglass commented on issue #7302: help request: 代理web静态资源访问的问题

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

   recommend using nginx to proxy static resources


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] 2294648043 closed issue #7302: help request: 代理web静态资源访问的问题

Posted by GitBox <gi...@apache.org>.
2294648043 closed issue #7302: help request: 代理web静态资源访问的问题
URL: https://github.com/apache/apisix/issues/7302


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] jagerzhang commented on issue #7302: help request: 代理web静态资源访问的问题

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

   这里的问题说的是APISIX和这个ckman是部署在一个容器里面,然后有部分本地的静态资源无法通过APISIX访问对吧?如果是这个场景,确实可以用nginx+ckman一个容器,然后APISIX在外面代理一层,APISIX应该没考虑代理本地静态资源的场景。


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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