Skip to content

Custom 404 for static file server #331

Answered by davidpdrsn
Umenokin asked this question in Q&A
Discussion options

You must be logged in to vote

If you want a customize 404 response that only applies to ServerDir then you have to route to a service that internally calls ServeDir and changes the response as necessary. There is an example of doing that here #87 (comment)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@davidpdrsn
Comment options

@Umenokin
Comment options

Answer selected by Umenokin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants