Package: fex
Version: 20130510-1

Hi!

I'd like to thank you for this great tool.

I'm using this in vhost configuration and found out,
that the headers are always displaying the hostname in /etc/fex/fex.ph
in the configuration and not the one in the vhost fex.ph.

I tried this fix, which works ok for me.

+++ /usr/share/fex/lib/fex.pp   2013-06-16 15:42:42.000000000 +0200
@@ -1144,6 +1144,7 @@
   if (%vhost and $hh and $hh =~ s/^([\w\.-]+).*/$1/) {
     if ($vhost = $vhost{$hh} and -f "$vhost/lib/fex.ph") {
       $ENV{VHOST} = "$hh:$vhost"; # memorize vhost for next run
+      $ENV{SERVER_NAME} = $hh;    # set to vhost name to correct page-headers
       $ENV{FEXLIB} = $FEXLIB = "$vhost/lib";
       $logdir = $spooldir    = "$vhost/spool";
       $docdir                = "$vhost/htdocs";


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to