-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,30 @@ | ||
HTTP Custom Internationalized Status Messages | ||
# HTTP Custom Internationalized Status Messages | ||
|
||
About | ||
------------------------------------------------------------------------------ | ||
Apache HTTP server allows custom error messages through the ErrorDocument | ||
directive (see https://httpd.apache.org/docs/2.4/mod/core.html#errordocument ), | ||
which also could be internationalized using content negotiation (see | ||
https://httpd.apache.org/docs/2.4/content-negotiation.html ). For such pages | ||
no advanced CGI is necessary, so using Server Side Includes (see | ||
https://httpd.apache.org/docs/2.4/howto/ssi.html ) provided by mod_include | ||
(see https://httpd.apache.org/docs/2.4/mod/mod_include.html ) one could | ||
achieve "homogenous and consistent style and layout" with minimum maintenance | ||
work. This project is based on the ideas and examples from the page Using XSSI | ||
and ErrorDocument to configure customized international server error responses | ||
(see https://httpd.apache.org/docs/1.3/misc/custom_errordocs.html ) from HTTPD | ||
1.3's documentation. | ||
Apache HTTP server allows custom error messages through the | ||
[ErrorDocument](https://httpd.apache.org/docs/2.4/mod/core.html#errordocument) | ||
directive, which also could be internationalized using | ||
[Content Negotiation](https://httpd.apache.org/docs/2.4/content-negotiation.html). | ||
For such pages no advanced CGI is necessary, so using | ||
[Server Side Includes](https://httpd.apache.org/docs/2.4/howto/ssi.html) | ||
provided by [mod_include](https://httpd.apache.org/docs/2.4/mod/mod_include.html) | ||
one could achieve "*homogenous and consistent style and layout*" with minimum | ||
maintenance work. This project is based on the ideas and examples from the page | ||
[Using XSSI and ErrorDocument to configure customized international server error responses](https://httpd.apache.org/docs/1.3/misc/custom_errordocs.html) | ||
from HTTPD 1.3's documentation. | ||
|
||
Installation | ||
------------------------------------------------------------------------------ | ||
These are the steps to follow to install and configure custom error docs: | ||
|
||
1. Create directory for the error documents (see | ||
https://httpd.apache.org/docs/1.3/misc/custom_errordocs.html#createdir ) and | ||
modify your HTTPD configuration as described. | ||
[Creating an ErrorDocument directory](https://httpd.apache.org/docs/1.3/misc/custom_errordocs.html#createdir)) | ||
and modify your HTTPD configuration as described. | ||
2. Download projects files into the directory created in point 1. | ||
3. Restart HTTPD. | ||
|
||
License | ||
------------------------------------------------------------------------------ | ||
Please, see file COPYING. | ||
Please, see file [COPYING](COPYING). | ||
|