• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            大龍的博客

            常用鏈接

            統(tǒng)計(jì)

            最新評(píng)論

            Lighttpd --- log配置

            Module: mod_accesslog

            Description

            CLF like by default, flexible like apache

            Options

            accesslog.use-syslog   send the accesslog to syslog    Default: disabled  accesslog.filename   name of the file where the accesslog should be written to if syslog   is not used.    if the name starts with a '|' the rest of the name is taken   as the name of a process which will be spawned and will get the   output    e.g.: ::      accesslog.filename = "/var/log/lighttpd.log"       $HTTP["host"] == "mail.example.org" {       accesslog.filename = "|/usr/bin/cronolog"      }    if you have multiple workers on 1.4.x (now, the current version)   and want all access logs to be written (without that, only one worker will write logs), use    the accesslog.filename = "\|/usr/sbin/cronolog.. (as a temporary solution)    Default: disabled  accesslog.format   the format of the logfile    ====== ================================   Option Description   ====== ================================   %%     a percent sign   %h     name or address of remote-host   %l     ident name (not supported)   %u     authenticated user   %t     timestamp of the end-time of the request   %r     request-line    %s     status code    %b     bytes sent for the body   %i     HTTP-header field   %a     remote address   %A     local address   %B     same as %b   %C     cookie field (not supported)   %D     time used in ms (not supported)   %e     environment   %f     physical filename   %H     request protocol (HTTP/1.0, ...)   %m     request method (GET, POST, ...)   %n     (not supported)   %o     `response header`_   %p     server port   %P     (not supported)   %q     query string   %T     time used in seconds   %U     request URL   %v     server-name   %V     HTTP request host name   %X     connection status   %I     bytes incomming   %O     bytes outgoing   ====== ================================    If %s is written %>s or %<s the < and the > are ignored. They are supported   for compatibility with apache.     %h will always return the IP address of the host, never the name. This makes it equivalent to %a, which is not implemented.    %a, %A, %{name}C, %D are all unimplemented as of 1.4.26 and 1.5.0-r2700    %i and %o expect the name of the field which should be written in curly brackets.    %q is not prepended with '?', unlike Apache    %{StrFTime format string}t is supported since 1.4.24.    %t does not work the same way it works in Apache (where the start of the request is recorded). Instead it shows the time      the request actually got delivered. This is done due to performance reasons. For most users this does not matter as usually      requests don't take long to get processed. In case you want to find out the time the request was started add the %T option      to your log-string and subtract it's value from the time shown by %t. 

            In lighttpd version 1.3.16, the default format is:

                accesslog.format = "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""  
            Default: CLF compatible output.

            In lighttpd versions 1.4.13-1.4.20, the default setting is:

                accesslog.format = "%h %V %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""  

            The difference between Apache's CLF is the second field changes from ``%l`` to ``%V``.

            Response Header

            The accesslog module provides a special way to log content from the
            application in a accesslog file. It can be used to log the session id into a
            logfile.

            If you want to log it into the accesslog just specify the field-name within
            a %{...}o like ::

              accesslog.format = "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{X-LIGHTTPD-SID}o\""  

            The prefix ``X-LIGHTTPD-`` is special as every response header starting with
            this prefix is assumed to be special for lighttpd and won't be sent out
            to the client.

            An example the use this functionality is provided below: ::

              <?php    session_start();    header("X-LIGHTTPD-SID: ".session_id());    ?>   TEST 

            ----
            Note: If you log to a pipe and have lighty chrooted the user running lighty will need access to “/bin/sh”.

            posted on 2012-08-25 14:55 大龍 閱讀(1199) 評(píng)論(0)  編輯 收藏 引用


            只有注冊(cè)用戶(hù)登錄后才能發(fā)表評(píng)論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問(wèn)   Chat2DB   管理


            青青草原综合久久| 久久99国产综合精品| AV无码久久久久不卡蜜桃| 理论片午午伦夜理片久久 | 亚洲精品无码久久一线| 久久免费视频6| 久久精品成人免费国产片小草| 国产一区二区三区久久| 麻豆亚洲AV永久无码精品久久| 久久人人爽人人爽人人片AV东京热| 日本久久久久久久久久| 亚洲国产成人精品女人久久久 | 国产精品99久久久久久人| 久久婷婷五月综合色奶水99啪| 久久www免费人成看片| 久久人做人爽一区二区三区| 久久久久高潮综合影院| 伊人久久精品无码二区麻豆| 亚洲AV无码久久精品色欲| 一本色道久久88—综合亚洲精品| 热99RE久久精品这里都是精品免费| 色婷婷久久综合中文久久一本| 国产69精品久久久久观看软件| 亚洲中文字幕久久精品无码喷水| 欧美噜噜久久久XXX| 久久精品国产99国产电影网| 激情五月综合综合久久69| 久久无码人妻精品一区二区三区| 亚洲国产精品无码久久九九| 久久久久亚洲AV成人网人人网站| 久久精品国产亚洲AV电影| 久久99热精品| 久久久久久国产a免费观看黄色大片 | 欧美国产精品久久高清| 香蕉久久av一区二区三区| 久久久久夜夜夜精品国产| 亚洲国产精品一区二区三区久久 | 偷窥少妇久久久久久久久| 国产精品久久久久影院色| 亚洲中文字幕伊人久久无码| 国内精品久久久久影院日本|