WEBDAV authentication for Office docunments on SSL enabled sites

As explained in my post related to the Webdav authentication issue using IE for Office documents on Windows 7, I found that the fix will not work for SSL enabled sites. To support HTTPS you will have to add the following lines in /etc/httpd/conf.d/ssl.conf file.

RewriteEngine On
RewriteRule ^.*$ – [F,L]

Restart httpd

To generate an SSL certificate you can use OpenSSL library

Backtracking example1

Let’s say you want to find the word following “foo” in the string “Food is on the foo table.”:


# Example of backtracking algorithm

use 5.006;

use strict;

use warnings;

$_ = "Food is on the foo table.";

if ( /b(foo)s+(w+)/i ) {

print "$2 follows $1.n";


When the match runs, the first part of the regular expression (b(foo) ) finds a possible match right at the beginning of the string, and loads up $1 with “Foo”. However, as soon as the matching engine sees that there’s no whitespace following the  “Foo” that it had saved in $1, it realizes its mistake and starts over again one character after where it had the tentative match. This time it goes all the way until the next occurrence of “foo”. The complete regular expression matches this time and you get the expected output of “table follows foo.”

Still more examples to come …keep watching