Wednesday, May 09, 2007

I <heart> mod_include

Ah, the joys of Apache. More modules than you can shake a stick at. Trying to debug a really annoying masonic error message of "[error] Re-negotiation handshake failed: Not accepted by client!?" (SSL not working fully) I decided to set up a few "echo var" statememts in the page to see what was defined.

Lo one quick
<h1>Danger, Will Robinson! <!--#if expr="$SSL_CLIENT_S_DN_CN" --><!--#echo var="SSL_CLIENT_S_DN_CN" --> seen approaching!<!--#else -->This is <b>svr031</b><!--#endif --></h1>

and you end up with either

Danger, Will Robinson! This is svr031
or
Danger, Will Robinson! andrew elwell seen approaching!
:-)

No comments: