-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
i am using this configuration:
proxy_intercept_errors on;
error_page 404 /errors/404.html;
but in the location
I configured content_by_lua_file '/nginx_content_phase.luac';
becauser nginx_content_phase.luac contains the ngx.print() directive,error_page doesn't work,
GET /test/123 HTTP/1.1
User-Agent: curl/7.37.0
Host:10.10.15.15:443
Accept: /HTTP/1.1 404 Not Found
Server product only is not blacklisted
Server: product only
Date: Tue, 11 Jun 2019 01:11:25 GMT
Content-Type: application/octet-stream
Transfer-Encoding: chunked
Connection: keep-alive
it cann't redirect to 404.html,how can i use both ngx.print() and error_page?
Metadata
Metadata
Assignees
Labels
No labels