    <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
     <channel>
        <title>2skies.com :: Lighttpd behind a proxy</title>
        <link>http://2skies.com/docs/Lighttpd_behind_a_proxy</link>
        <description>Hosting-Development-Support :: Experience the difference</description>
        <dc:language>en-us</dc:language> 
        <dc:creator>Administrator</dc:creator> 
        <admin:generatorAgent rdf:resource="http://www.xaraya.org" /> 
        <admin:errorReportsTo rdf:resource="mailto:support@2skies.com" />
       <sy:updatePeriod>hourly</sy:updatePeriod>
       <sy:updateFrequency>1</sy:updateFrequency>
       <docs>http://backend.userland.com/rss</docs>

<!-- show a header for the current publication type -->
        <h2>library</h2>


<div class="xar-mod-head"><span class="xar-mod-title">web development and webmaster best practice + lighttpd</span></div>

<table border="0" cellpadding="1" cellspacing="0">
<tr>
    <td valign="top">
        Browse in :
   </td>
   <td valign="top">

                                    <a href="http://2skies.com/docs/">All</a>

                 &gt;                     <a href="http://2skies.com/docs/c43/">Documentation</a>

                 &gt;                     <a href="http://2skies.com/docs/c68/">knowledge base</a>
<br />

                                    <a href="http://2skies.com/docs/">All</a>

                 &gt;                     <a href="http://2skies.com/docs/c71/">Subject</a>

                 &gt;                     <a href="http://2skies.com/docs/c73/">Software</a>

                 &gt;                     <a href="http://2skies.com/docs/c74/">lighttpd</a>
<br />

                                    <a href="http://2skies.com/docs/c68-74/">Any of these categories</a>

                -                    <a href="http://2skies.com/docs/c68+74/">All of these categories</a>
<br />
</td>
</tr>
</table>






<div class="xar-alt-outline xar-fullwidth">
    <div class="xar-accent-outline xar-fullwidth">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
            <tr>
                <td align="left" valign="top" class="xar-normal">
                    <span class="xar-title"> Lighttpd behind a proxy</span>
                   <br />
                    <div align="right">
                        <span class="xar-sub">  </span>
                    </div>
                    <br />
                    <br />
                    <p>If you're running your lighttpd on a high-numbered port (&gt;1023), then you're probably behind a reverse-proxy. In this case, lighttpd's log by default picks up the proxy's ip address, not the end-user's. In order to capture this information for all of your access logs, place the following line in the global context of your lighttpd.conf:</p>
<pre class="c#:nocontrols">accesslog.format = &quot;%{X-Forwarded-For}i %l %u %t \&quot;%r\&quot; %&gt;s %b \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot;&quot;<br /></pre>
<p>For more information on what these options mean and additional options for logging, check out <a title="lighttpd's mod_accesslog wiki page" href="http://trac.lighttpd.net/trac/wiki/Docs%3AModAccessLog">lighty's wiki</a>.</p>                    <br />
                    <span class="xar-quote">  </span>
</td>
           </tr>
       </table>
   </div>
</div>

<p>
Updated:  05 Apr 10 07:32</p>
<br />
   <table border="0" width="95%">
       <tr>
           <td align="left">
                    <a href="http://2skies.com/docs/Compressing_your_website_output">&lt;
 prev </a>
&nbsp;
           </td>
           <td align="right">
               &nbsp;
                    <a href="http://2skies.com/docs/Mirroring_with_wget">
 next &gt;</a>
</td>
       </tr>
   </table>
</channel>
</rss>
