1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

subdomain logfiles

Discussion in 'Plesk for Linux - 8.x and Older' started by webinmotion, Sep 30, 2005.

  1. webinmotion

    webinmotion Guest

    0
     
    I must have subdomains log http access and errors to thier own custom log files (a different log than the parent domain)

    does anyone know how to do this?
     
  2. jamesyeeoc

    jamesyeeoc Guest

    0
     
    You can try putting customlog directive in the subdomain's vhost.conf and vhost_ssl.conf files.

    http://httpd.apache.org/docs/2.0/mod/mod_log_config.html#customlog

    After any modification to vhost or apache files, remember to use

    /usr/local/psa/admin/bin/websrvmng -u --vhost-name=domain.tld

    then restart apache.

    The subdomain's conf files should be located at:

    /home/httpd/vhosts/maindomain.tld/subdomains/subdomname/conf

    The vhost.conf and vhost_ssl.conf files are not normally created by default, so you may have to create them from scratch.
     
  3. webinmotion

    webinmotion Guest

    0
     
    Thanks, this looks good, I had limited success with a LogFile directive in the subdomain's vhosts.conf file.

    here is what I have,

    # CustomLog with format nickname
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    CustomLog /vhome/[domain]/statistics/logs/access_log-[doamin[ common

    - does not work, do I need to enclose this in a context?

    One question, is the vhosts.conf included withing the virtual domain context or after, I was never clear on where plesk included these files.
     
  4. webinmotion

    webinmotion Guest

    0
     
    has anyone ever been able to create a separate logfile for a subdomain? The above does not work, it just gets ignored.

    What I am trying to do is set up awastats for a subdomain only, no matter how I configure it it ignores the fact that I have told it to look only for the subdomain and it processes the entire log.

    - anyone?
     
Loading...