Custom Error Page

Hello!

I’m trying to create a custom page for the error:

404 Site something.com is not served on this interface

The problem is that at this point I don’t have something.com in my caddy file to add the

    errors {
    	404 404.html # Not Found
    	500 500.html # Internal Server Error
    }

Is there any way i could have a custom global error page?

Yeah, you could add a site that handles all HTTP requests, for example:

http:// {
  errors {
    404 404.html
  }
}

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.