Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] vdradmin: patch for relative paths (apache mod_proxy)



To get the apache mod_proxy working (as described in another mail today
here) I patched the vdradmin_0.11 to use a relative path in the created html
files. All I tested is working; so this patch should be ok.

        Matthias

--- vdradmind.pl.ori11  Thu Feb  7 19:36:48 2002
+++ vdradmind.pl        Thu Feb  7 19:38:16 2002
@@ -172,7 +172,7 @@
     $Request = <$Client>;
     $Request =~ s/\r\n//g;

-    if($Request =~ /Host: (.*)/i) { $MyURL = "http://$1"; }
+    if($Request =~ /Host: (.*)/i) { $MyURL = "\."; }
     if($Request =~ /Authorization: basic (.*)/i) {
       ($AuthUser, $AuthPass) = split(/\:/, decode_base64($1));
     }





Home | Main Index | Thread Index