You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "kellyseeme (via GitHub)" <gi...@apache.org> on 2023/04/20 02:40:50 UTC

[GitHub] [apisix] kellyseeme opened a new issue, #9342: where to find 404 config

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

   ### Description
   
   in apisix,where to find the 404 configuration?
   
   ### Environment
   
   - APISIX version (run `apisix version`):2.15.1
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - 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] kellyseeme closed issue #9342: where to find 404 config

Posted by "kellyseeme (via GitHub)" <gi...@apache.org>.
kellyseeme closed issue #9342: where to find 404 config
URL: https://github.com/apache/apisix/issues/9342


-- 
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] soulbird commented on issue #9342: where to find 404 config

Posted by "soulbird (via GitHub)" <gi...@apache.org>.
soulbird commented on issue #9342:
URL: https://github.com/apache/apisix/issues/9342#issuecomment-1518914055

   This information is compiled into apisix-base, you cannot modify it in 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


[GitHub] [apisix] zccabb commented on issue #9342: where to find 404 config

Posted by "zccabb (via GitHub)" <gi...@apache.org>.
zccabb commented on issue #9342:
URL: https://github.com/apache/apisix/issues/9342#issuecomment-1516026787

   Do you mean that you want to customize the return of 404?
   If so, you can find the information for 404 under apisix/init.lua.Change it to the value you want.
   https://github.com/apache/apisix/blob/54159168ee52f9d8614b6706842ddc5e5af2c4fb/apisix/init.lua#L569-L576
   ### Example
   ```lua
   return core.response.exit(404,
                       {error_msg = "404 Route Not Found TEST TEST"})
   ```
   If a 404 error occurs:
   ```shell
   $ ~ curl 127.0.0.1:9080/
   {"error_msg":"404 Route Not Found TEST TEST"}
   ```


-- 
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] kellyseeme commented on issue #9342: where to find 404 config

Posted by "kellyseeme (via GitHub)" <gi...@apache.org>.
kellyseeme commented on issue #9342:
URL: https://github.com/apache/apisix/issues/9342#issuecomment-1518558291

   tks,and where i can find to change the 
   <img width="541" alt="image" src="https://user-images.githubusercontent.com/535200/233772276-91d7a913-f929-424c-8ada-bd80f08fc022.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] kellyseeme commented on issue #9342: where to find 404 config

Posted by "kellyseeme (via GitHub)" <gi...@apache.org>.
kellyseeme commented on issue #9342:
URL: https://github.com/apache/apisix/issues/9342#issuecomment-1518914126

   tks


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