AWstats template

Discussion in 'General' started by ozkan, Feb 5, 2010.

  1. ozkan

    ozkan New Member

    Hello,

    Could you please tell me, where do I have to place my awstats.model.conf ?


    Also please have a look at this page:

    Code:
    sihirlitur.com/stats/
    It's created by litespeed's awstats plugin.

    how can I show $vh_domain instead of localhost in static awstats pages?

    Localhost causes problems with links with main statistic page. You can see an example on
    Code:
    sihirlitur.com/stats/awstats.sihirlitur.com.urldetail.html
  2. mistwang

    mistwang LiteSpeed Staff

    awstats.model.conf should be in the conf/ directory under awstats working directory.
    change the vhost name from LSWS web console may help.
  3. NiteWave

    NiteWave Administrator

    in ls web admin console,

    select virtual host "sihirlitur.com"-->
    Add-ons-->
    AWStats integration-->
    Site Domain:sihirlitur.com (default is localhost)
  4. ozkan

    ozkan New Member

    I create my vritual hosts under templates. They're not instantiated.

    Is it possible to change it to a variable such as $vh_domain ?
  5. mistwang

    mistwang LiteSpeed Staff

    Yes, you can use $vh_domain
  6. ozkan

    ozkan New Member

    My Litespeed installation is located under /usr/local. Where do I have to place the awstats.model.conf? Could you please give me the absolute path like: "/usr/local/lsws/conf/awstats.model.conf" ?
  7. mistwang

    mistwang LiteSpeed Staff

    /usr/local/lsws/add-ons/awstats/wwwroot/cgi-bin/awstats.model.conf
    that's the global model configuration file.
    For each vhost, you can have a model configuration file as well. Usually at somewhere under vhost root.
  8. ozkan

    ozkan New Member

    I have changed the configuration file on this path. But I'm still having the the problem. Links are redirecting me to "localhost".

    Is this line true ?

    SiteDomain="$vh_domain"
  9. mistwang

    mistwang LiteSpeed Staff

    You cannot use it in awstats.model.con, only use $vh_domai in the vhost template, awstats integration section.

Share This Page