Greetings,

I noticed a bit of a bug in the fragments used to build
/etc/http/conf/httpd.conf .  This bug is repeated many times in a few
fragments of httpd.conf.  I will say I am no expert, so perhaps this is not,
but it seems wrong to me.

The issue is that where the server name is inserted in the template fragment
45ServerName the following line is used:

ServerName www.{ $DomainName }

Shouldn't this be:

ServerName { $WebServerName }

or at least:

ServerName { $SystemName }.{ $DomainName }

or even:

ServerName www.{ $LocalDomainPrefix }.{ $DomainName }

This came up when I installed the (extremely cool) MP3 jukebox.  In my case
the m3u file was coming back with a URL that was http://www.jrp2.net/xxxxx .
Unfortunately, www.jrp2.net is another box hosted at an ISP and I removed
that entry from the Host list.  I seem to recall there were some system
changes back in the 4.0/4.1 timeframe that allowed for this fairly common
scenario of www.( $DomainName } which was causing problems.  It seems this
part was missed.  I am not sure which of the above fits the e-smith
architecture the best, but I am pretty sure the way it seems to be done in
4.1.1 is NOT.

I see the problem in
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/45ServerName as well as
possibly in a couple other (related to virtual hosts).

I will say I am a bit confused, as UseCanonicalName is set to off, and I
think that should prevent machine name munging, but I guess not.  I changed
every reference to http://www.jrp2.net in my httpd.conf to one that resolves
properly and it is working great.

Anyway, I thought I would pass this along.  If I am way off base here,
please slap me down.

Thanks,

JP



Reply via email to