ServerAlias host log

Discussion in 'General' started by blocker, Nov 26, 2014.

  1. blocker

    blocker Member

    Hello,

    I have the following case:

    ISPConfig server (Debian wheezy webserver: apache), with a dummy vHost - dummy.domain.com, all the real domains are setup as ServerAlias: A-domain.com and B-domain.com

    I need to see in the access.log, which of the ServerAliase's has been accessed.

    Now in the log it stays:
    Code:
    XX.XX.XX.XX - - [26/Nov/2014:00:00:03 +0100] "GET target URL HTTP/1.1" 301 495 "referer URL" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko"
    
    I need it for example like this:

    Code:
    A-domain.com -- XX.XX.XX.XX - - [26/Nov/2014:00:00:03 +0100] "GET target URL HTTP/1.1" 301 495 "referer URL" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko"
    
    B-domain.com -- XX.XX.XX.XX - - [26/Nov/2014:00:00:03 +0100] "GET target URL HTTP/1.1" 301 495 "referer URL" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko"
    whats the best way to do that, and is it possible?

    Thanks in advance for your help and time!
     
  2. Ghostdare

    Ghostdare Member

Share This Page