LiteSpeed Awstats Addon (SiteDomain)

Discussion in 'General' started by zoom, Jul 27, 2007.

  1. zoom

    zoom Member

    When creating a new virtual host template and entering the information required for the awstats addon it refuses to let me save the template "*value must be set" because the SiteDomain field is blank.

    The help indicates that if the SiteDomain field is blank the virtual host name will be used. Is this a bug, or I'm a missing something???

    I was able to solve the problem by simply editing the template XML file and removing the value I put in SiteDomain to avoid the interface bug.

    I'm using the latest build 3.2.


    Thanks
    Last edited: Jul 27, 2007
  2. zoom

    zoom Member

    Seems the server is still reporting a WARN due to the SiteDomain field having a blank value. The stats work, however the server shouldn't produce the warning..

    SiteDomain configuration is invalid, use default [mydomain.com].
  3. mistwang

    mistwang LiteSpeed Staff

    How about use "$VH_NAME" for "SiteDomain" configuration?
  4. zoom

    zoom Member

    Thanks mistwang for the reply.

    I did end up using the $VH_NAME, but I couldn't find an easy way to include the aliases listed in the template for the SiteAliases value of awstats. Do you have a global variable that I can reference for aliases when creating a virtual template?
  5. mistwang

    mistwang LiteSpeed Staff

    You can use "$VH_ALIASES" for this purpse.
  6. zoom

    zoom Member

    mistwang,
    I noticed a small bug in the awstats addon. It's putting $VH_NAME as the SiteDomain in the awstats config. It should be replacing this value with the actual domain. No Problem with $VH_ALIASES it replaces the aliases for the virtual host in the awstats config.

    SiteDomain="$VH_NAME"


    Thanks.
  7. mistwang

    mistwang LiteSpeed Staff

    I gave the wrong variable name, it should be

    $vh_domain

Share This Page