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/24 17:02:25 UTC
[GitHub] [apisix-dashboard] giphoo commented on pull request #397: fix: dashboard /user/login get error code 405
giphoo commented on pull request #397:
URL: https://github.com/apache/apisix-dashboard/pull/397#issuecomment-679249676
这里与是否ip无关,请参考修改:
```nginx
location /user/login {
if ( $request_method = 'POST' ) { #HERE
proxy_pass http://manager:8080;
}
try_files $uri $uri/ /index.html;
}
location / {
try_files $uri $uri/ /index.html;
}
location /apisix/admin {
proxy_pass http://manager:8080/apisix/admin;
}
```
----------------------------------------------------------------
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