oupala / apaxy

a simple, customisable theme for your apache directory listing
https://oupala.github.io/apaxy/
GNU General Public License v3.0
1.86k stars 256 forks source link

Custom Error Pages #98

Closed rivermont closed 6 years ago

rivermont commented 6 years ago

It would be great to have custom HTTP error pages to go with the theme. Will look into this myself.

ghost commented 6 years ago

Oh yes. This would be very easy. Just adding these to the .htaccess file would redirect apache to these pages instead:

ErrorDocument 404 /errors/not_found.html
ErrorDocument 403 /errors/forbidden.html

Of course, we could do more errors, and put their pages where ever we want.

ghost commented 6 years ago

Oh, we could also do something like this:

ErrorDocument 500 "The server encountered an error"

But that wouldn't be a styled error page...

Anyway, this article has lots of good information on this.

oupala commented 6 years ago

Does anyone plan to write such an error page?

ghost commented 6 years ago

Yes. I can do it.

oupala commented 6 years ago

Good news @jordanbancino. Feel free to reference this issue in your pull request.

ghost commented 6 years ago

@oupala Awesome, I’ll get to work.