All pastes #2098167 Raw Edit

Someone

public text v1 · immutable
#2098167 ·published 2012-01-02 13:50 UTC
rendered paste body
<Location />
order allow,deny
ErrorDocument 403 /error.html
</Location>
<Location /error.html>
order deny,allow
</Location>

$ echo myerr > built/htdocs/error.html


$ printf  "GET /xxx HTTP/1.0\r\n\r\n" | nc 0 80
HTTP/1.1 403 Forbidden
Date: Mon, 02 Jan 2012 13:49:37 GMT
Server: Apache/2.5.0-dev (Unix) OpenSSL/0.9.8o
Last-Modified: Mon, 02 Jan 2012 13:48:30 GMT
ETag: "6-4b58bd6764780"
Accept-Ranges: bytes
Content-Length: 6
Connection: close
Content-Type: text/html

myerr