Nginx 404 redirection to error page

Dhanushka Parakrama parakrama1282 at
Fri Apr 8 12:14:08 UTC 2022

Hi All

I have simple drupal site running  and i wanted to redirect 404 pages to a
error page , So i  have following configuration in place

error_page  404;

when it try to access non existing  page such as
, then  from nginx page correctly get redirect to the

But when i try to access non non-existing page ( with extension )  such as*abc.js  * it does not get redirected to the
<>  *page .

So is there any way to fix this issue?  , please advice

Thank You
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list