martin 2004/09/29 07:57:12 Modified: htdocs/manual/misc custom_errordocs.html Log: Submitted by: Joachim Durchholz <jo durchholz.org> From: Joachim Durchholz Subject: Slight improvement for http://httpd.apache.org/docs/misc/custom_errordocs.html Hi Martin, I just thought that the custom error docs might be a bit more failproof if the $SERVER_NAME regex included a trailing $, i.e. make the first line of head.shtml read <!--#if expr="$SERVER_NAME = /.*\.mycompany\.com$/" This protects against urls such as http://mycompany.com.othercompany.com/ which would match as "mycompany.com" instead of "othercompany.com" as it should. (Whoever got URLs backwards should be made to work as a Microserf to atone for his sin, grmbl...) Regards, Jo Revision Changes Path 1.11 +1 -1 httpd-docs-1.3/htdocs/manual/misc/custom_errordocs.html Index: custom_errordocs.html =================================================================== RCS file: /home/cvs/httpd-docs-1.3/htdocs/manual/misc/custom_errordocs.html,v retrieving revision 1.10 retrieving revision 1.11 diff -u -u -r1.10 -r1.11 --- custom_errordocs.html 8 Oct 2001 01:26:54 -0000 1.10 +++ custom_errordocs.html 29 Sep 2004 14:57:12 -0000 1.11 @@ -414,7 +414,7 @@ for browser types which support animated GIFs). <hr /> <pre> -<!--#if expr="$SERVER_NAME = /.*\.mycompany\.com/" +<!--#if expr="$SERVER_NAME = /.*\.mycompany\.com$/" --><!--#set var="IMG_CorpLogo" value="http://$SERVER_NAME:$SERVER_PORT/errordocs/CorpLogo.gif" --><!--#set var="ALT_CorpLogo" value="Powered by Linux!"
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
