https://redmine.lighttpd.net/https://redmine.lighttpd.net/favicon.ico?13667327412006-07-29T16:31:20Zlighty labsLighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=16032006-07-29T16:31:20ZAnonymous
<ul></ul><p>Can confirm the same bug on OpenBSD running lighttpd-1.4.11.</p>
<p>Last conditional gets the error logging, access logging appears to be working correctly.</p>
<p>-- anil</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=16042006-09-06T10:35:20ZAnonymous
<ul></ul><p>Also on FreeBSD 6.1 running lighttpd-1.4.11 (ssl)</p>
<p>-- lighttpd</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=16052006-10-09T20:08:39ZAnonymous
<ul></ul><p>Also on Debian sarge running lighttpd 1.4.12</p>
<p>-- dp</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=16062006-11-04T10:56:47Ztcsoft
<ul></ul><p>can confirm it for lighttpd-1.4.13 on Debian-Sarge too</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=16072006-11-04T11:24:04Zdarix
<ul></ul><p>you know. your assumption is wrong. this is by design atm. this is only an enhancement request to make it conditional in the future.</p>
<p>just as a reminder.</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=16082007-01-03T23:19:07ZAnonymous
<ul></ul><p>It took me an hour to find this ticket. Many of the Wiki examples pretend that the error file is to be set individually for each vhost.</p>
<p>Example: <a class="external" href="http://trac.lighttpd.net/trac/wiki/HowToSetupFastCgiIndividualPermissions">http://trac.lighttpd.net/trac/wiki/HowToSetupFastCgiIndividualPermissions</a></p>
<p>-- alex</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=16092007-02-06T17:31:48ZAnonymous
<ul></ul><p>This bug is annoying if you try to do vhosting different customers. <br />Errors in their code should be going to their logfile.</p>
<p>-- Jan Scholten</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=16102007-08-31T19:31:56ZAnonymous
<ul></ul><p>Also on Fedora 7 running lighttpd 1.4.16.</p>
<p>-- Aleksey Klimov</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=16112007-12-01T05:27:42ZAnonymous
<ul></ul><p>Also on lighttpd 1.4.18</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=16122007-12-18T09:17:30ZAnonymous
<ul></ul><p>''"Bug opened <ins>2 years_</ins> ago."'' Oops!<br />Yep, virtual hosting needs this.</p>
<p>-- grin</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=16132008-01-15T14:20:54ZAnonymous
<ul></ul><p>Centos5<br />lighttpd-1.4.18 (ssl)</p>
<p>Still the same problem.<br />It might even be affecting php-cgi when misconfigured in this way. I was having issues of pages not loading. Browser would connect to the server but nothing would load. If you refreshed a couple of times it would eventually load. Sometimes there would be stuck php-cgi processes that I had to kill manually.</p>
<p>After trying to debug some scripts I found that all my 3-4 sites were logging to the same file as described here. Once I removed the lines in the conditionals, everything started working OK. Not sure if it was a coincidence or not.</p>
<p>If that was relating to the issue, it could be a bit bigger than we think, due to a lot of documentation on the web explaining that this is the way to do it.</p>
<p>-- ShaunO</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=16142008-02-20T19:08:41Zstbuehler
<ul></ul><p>This is not a bug - it just is.</p>
<p>As it is by design, i don't think this will ever get implemented.</p>
<p>You can start you fastcgi backends with custom scripts to pipe their errors into separate logs, so your customers can see their php errors.</p>
<p>And imho, server errors should be in a server-log, not in a vhost (and many errors may not even get to the point where the vhost is known).</p>
<p>Fixed the linked documentation.</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=16152008-06-06T07:24:55Zdandv
<ul></ul><p>We may work around this limitation by messing with the fastcgi script outputs, but this is not the point.</p>
<p>Virtual hosts should be as independent of each other as possible. Each can have their own access log. Why not their own error log? Apache does this. Is it impossible for lighttpd to do it as well?</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=16162008-06-06T08:48:20Zdandv
<ul></ul><p>Here are some arguments for separating error logs per vhost:</p>
<p>1. Virtual hosts are conceptually separated. This should be translated systematically and consistently into log separation. acceslog.filename is per vhost, so should be the errorlog.</p>
<p>2. One server admin may administer multiple web sites served by one lighty, the classic example being a 'stage' version of a site, and a 'prod' version. The same admin will want to treat the 'prod' errors with higher priority than the 'stage' errors, hence the need for separating them.</p>
<p>Please vote in <a href="http://www.polldaddy.com/poll.aspx?p=675353" class="external">this poll</a> on whether lighttpd should separate error logs per virtual host, just like the access log, vs. amalgamating all errors into one server.errorlog.</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=16172008-08-03T15:54:22Zstbuehler
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Fixed</i></li><li><strong>Resolution</strong> set to <i>wontfix</i></li></ul><ol>
<li>You have one lighttpd running, so one error.log. For your applications you should use extra error logs if you need separate ones.</li>
<li>stage and prod running on in the same webserver instance? Just run a second lighttpd...</li>
<li>The code isn't designed for this - too much work in 1.4 and 1.5</li>
</ol> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=47862008-10-10T19:04:59Zstbuehler
<ul><li><strong>Status</strong> changed from <i>Fixed</i> to <i>Wontfix</i></li></ul> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=52112009-01-06T04:15:19Zdandv
<ul><li><strong>Status</strong> changed from <i>Wontfix</i> to <i>Reopened</i></li></ul><p>Please consider implementing this feature. Nginx supports separating error logs per virtual host: <a class="external" href="http://article.gmane.org/gmane.comp.web.nginx.english/1628">http://article.gmane.org/gmane.comp.web.nginx.english/1628</a></p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=52122009-01-06T12:41:35Zstbuehler
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Wontfix</i></li><li><strong>Patch available</strong> set to <i>No</i></li></ul> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=53972009-02-09T10:00:13ZDark
<ul><li><strong>Status</strong> changed from <i>Wontfix</i> to <i>Reopened</i></li></ul><p>One more try to reopen this annoying "bug" =)</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=53982009-02-09T12:31:05Zstbuehler
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Wontfix</i></li></ul> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=53992009-02-09T16:38:32Zdandv
<ul></ul><p>I'm watching this issue and the e-mail notification about change <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Feature request: Environment Variables in config (Fixed)" href="https://redmine.lighttpd.net/issues/20">#20</a> contained the following text:</p>
<pre>
One more stupid guy i don't care about.
</pre>
<p>What was that about, stbuehler?</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=54202009-02-12T16:19:59Zslynko
<ul><li><strong>Status</strong> changed from <i>Wontfix</i> to <i>Reopened</i></li><li><strong>Target version</strong> changed from <i>1.5.0</i> to <i>1.4.22</i></li></ul><p>I also vote for this feature</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=54232009-02-12T22:43:27Zstbuehler
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Wontfix</i></li></ul><p>It's not about how many people want this or what other httpd servers are doing. I will not change the core in 1.4 for this ("stable" version). I probably won't have the time to review such a patch for 1.5 and sandbox already has this feature.</p>
<p>If you want a separate error log for the *cgi backends, just provide a patch.</p>
<p>PS: It is really annoying to close this bug twice a week... and that is time in which I could have done way better things for lighty...</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=59432009-05-14T08:10:32Zmk
<ul></ul><p>This is unrelated to an actual fix in lighttpd but it may help some people until the fix appears.</p>
<p>A limited workaround for PHP is to early in your code do: </p>
<pre><code>ini_set("error_log", "/path/to/your/own/error.log");</code></pre>
<p>The file needs to be writeable by lighttpd of course (and dont forget to add it for log rotation if appropriate).</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=76652011-11-19T07:35:48Zsomsy
<ul><li><strong>Status</strong> changed from <i>Wontfix</i> to <i>Reopened</i></li><li><strong>Target version</strong> changed from <i>1.4.22</i> to <i>1.4.x</i></li></ul><p>Maybe stbuehler has cooled off now ("it is really annoying to close this bug twice a week" .. come on, man, toughen up and respect your users! after all, we all know by now that one ignores one's user base at risk of losing it!), so I'm reopening this bug, to reiterate: this is important and, frankly speaking, not that difficult. Lame workarounds are lame.</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=76662011-11-19T13:38:49Zstbuehler
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Invalid</i></li><li><strong>Priority</strong> changed from <i>High</i> to <i>Normal</i></li><li><strong>Target version</strong> deleted (<del><i>1.4.x</i></del>)</li><li><strong>Missing in 1.5.x</strong> set to <i>No</i></li></ul> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=79012012-07-09T16:21:08Zprogrammador
<ul></ul><p>mk wrote:</p>
<blockquote>
<p>This is unrelated to an actual fix in lighttpd but it may help some people until the fix appears.</p>
<p>A limited workaround for PHP is to early in your code do:</p>
<p>ini_set("error_log", "/path/to/your/own/error.log");</p>
<p>The file needs to be writeable by lighttpd of course (and dont forget to add it for log rotation if appropriate).</p>
</blockquote>
<p>And what to do for those people who uses something different from PHP as a FastCGI backend?</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=79022012-07-09T16:25:04Zstbuehler
<ul></ul><p>Then those backends should provide a similar option; instead of looping the error message over a www-data user into log files you need to make available to the user again, just let the user log them.</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=84242014-11-19T12:04:07ZTorxed
<ul><li><strong>Status</strong> changed from <i>Invalid</i> to <i>Reopened</i></li></ul> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=84252014-11-19T12:04:19ZTorxed
<ul><li><strong>Target version</strong> set to <i>1.5.0</i></li></ul><p>darix wrote:</p>
<blockquote>
<p>yes lighttpd supports only one error log. but that doesnt render vhosts useless. vhosts work outside of shared hosting environments very well too. yes this is a missing features that makes it harder to use lighttpd in shared hosting environments.<br />but in the end it is your decision if lighttpd will work in your setup or not.</p>
<p>for 1.5 we plan to fix this.</p>
</blockquote>
<p>Why is there no mention of this on the 1.5 roadmap?<br />This has been bugging me for ages now. And yea fair enough, I can switch software but then again I wouldn't want to seeing as this was informed 6 years ago that it would be fixed.</p>
<p>Quote from: <a class="external" href="http://redmine.lighttpd.net/issues/1257">http://redmine.lighttpd.net/issues/1257</a></p>
<p>I'm not interested in the error log as much as i am in the access-log, can this be a feature in 1.5 or not?</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=84262014-11-19T12:28:43Zdarix
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Invalid</i></li></ul><p>1.5 branch is dead. lighttpd2 replaced it.</p>
<p>see <a class="external" href="http://redmine.lighttpd.net/projects/lighttpd2">http://redmine.lighttpd.net/projects/lighttpd2</a></p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=125022021-07-10T19:53:25Zgstrauss
<ul><li><strong>ASK QUESTIONS IN Forums</strong> set to <i>No</i></li></ul><p>FYI: lighttpd 1.4.56 and later support multiple <code>server.errorlog</code> directives, per-vhost or per any other config condition.</p>
<p>( referenced from <a class="external" href="https://serverfault.com/questions/142320/how-to-enable-error-log-in-lighttpd-properly">https://serverfault.com/questions/142320/how-to-enable-error-log-in-lighttpd-properly</a> )</p> Lighttpd - Feature #665: server.errorlog is global instead of per virtual hosthttps://redmine.lighttpd.net/issues/665?journal_id=136362023-08-01T05:31:01Zgstrauss
<ul><li><strong>Status</strong> changed from <i>Invalid</i> to <i>Fixed</i></li><li><strong>Target version</strong> deleted (<del><i>1.5.0</i></del>)</li></ul><p>lighttpd 1.4.56 and later support multiple server.errorlog directives, per-vhost or per any other config condition.</p>