Index: /branches/eam_branches/ipp-20130307/dvodist/www-util/dvodist.page.mkd
===================================================================
--- /branches/eam_branches/ipp-20130307/dvodist/www-util/dvodist.page.mkd	(revision 35274)
+++ /branches/eam_branches/ipp-20130307/dvodist/www-util/dvodist.page.mkd	(revision 35275)
@@ -12,7 +12,7 @@
 $fromProxy = $_SERVER['HTTP_X_FORWARDED_FOR'] && ($_SERVER['REMOTE_ADDR'] == $ifaProxy);
 if ($fromProxy) {
-  $rootdir = "";
+  $rootdir = "@ROOTWWW@";
  } else {
-  $rootdir = "@ROOTDIR@";
+  $rootdir = "@ROOTWWW@@ROOTDIR@";
  }
 
@@ -20,5 +20,5 @@
 
 $script = basename($_SERVER[SCRIPT_NAME]);
-do_markdown ($script);
+do_markdown ($script, $rootdir);
 
 menu_end();
Index: /branches/eam_branches/ipp-20130307/dvodist/www-util/ipp.php
===================================================================
--- /branches/eam_branches/ipp-20130307/dvodist/www-util/ipp.php	(revision 35274)
+++ /branches/eam_branches/ipp-20130307/dvodist/www-util/ipp.php	(revision 35275)
@@ -245,5 +245,6 @@
 
 // lines which start with @ are processed by 'dirlist', all others are processed by Markdown
-function do_markdown ($source) {
+function do_markdown ($source, $root) {
+
   if (!file_exists($source)) return;
 
@@ -254,4 +255,7 @@
   $to_dirlist = "";
   while ($line = fgets ($file, 1024)) {
+    // replace @WWWHOST@ with $root
+    $line = str_replace ("@WWWHOST@", $root, $line);
+
     // echo "line: $line";
     if (!strncmp($line, "@", 1)) {
Index: /branches/eam_branches/ipp-20130307/dvodist/www-util/ippdata.page.mkd
===================================================================
--- /branches/eam_branches/ipp-20130307/dvodist/www-util/ippdata.page.mkd	(revision 35274)
+++ /branches/eam_branches/ipp-20130307/dvodist/www-util/ippdata.page.mkd	(revision 35275)
@@ -20,5 +20,5 @@
 
 $script = basename($_SERVER[SCRIPT_NAME]);
-do_markdown ($script);
+do_markdown ($script, $rootdir);
 
 menu_end();
