<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Apache HTTP Server &#8211; My Shitty Code</title>
	<atom:link href="https://myshittycode.com/tag/apache-http-server/feed/" rel="self" type="application/rss+xml" />
	<link>https://myshittycode.com</link>
	<description>Embracing the Messiness in Search of Epic Solutions</description>
	<lastBuildDate>Fri, 06 Jan 2023 17:19:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://myshittycode.com/wp-content/uploads/2022/04/cropped-icon-32x32.png</url>
	<title>Apache HTTP Server &#8211; My Shitty Code</title>
	<link>https://myshittycode.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">205304208</site>	<item>
		<title>Rotating Log Files on Apache HTTP Server</title>
		<link>https://myshittycode.com/2013/10/28/rotating-log-files-on-apache-http-server/</link>
					<comments>https://myshittycode.com/2013/10/28/rotating-log-files-on-apache-http-server/#respond</comments>
		
		<dc:creator><![CDATA[Shitty Author]]></dc:creator>
		<pubDate>Mon, 28 Oct 2013 14:31:36 +0000</pubDate>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[Apache HTTP Server]]></category>
		<guid isPermaLink="false">http://myshittycode.com/?p=199</guid>

					<description><![CDATA[<p>PROBLEM Consider the following log configuration:- At some point of time, both error.log and access.log are going to get insanely large. SOLUTION To fix this, the logs can be piped (by using &#124;) to Apache HTTP Server&#8217;s built-in program called rotatelogs to rotate the log files. For example, the following configuration will create a daily [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://myshittycode.com/2013/10/28/rotating-log-files-on-apache-http-server/">Rotating Log Files on Apache HTTP Server</a> appeared first on <a rel="nofollow" href="https://myshittycode.com">My Shitty Code</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">PROBLEM</h2>



<p>Consider the following log configuration:-</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
ErrorLog &quot;D:/logs/apache/error.log&quot;

&lt;IfModule log_config_module&gt;
    ...
    CustomLog &quot;D:/logs/apache/access.log&quot; common
&lt;/IfModule&gt;
</pre></div>


<p>At some point of time, both <code>error.log</code> and <code>access.log</code> are going to get insanely large.</p>



<h2 class="wp-block-heading">SOLUTION</h2>



<p>To fix this, the logs can be piped (by using <code>|</code>) to Apache HTTP Server&#8217;s built-in program called <code>rotatelogs</code> to rotate the log files. For example, the following configuration will create a daily rolling file appender for <code>error.log</code> and <code>access.log</code>.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; highlight: [1,5]; title: ; notranslate">
ErrorLog &quot;|D:/apps/apache/bin/rotatelogs.exe -l D:/logs/apache/error-%Y-%m-%d.log 86400&quot;

&lt;IfModule log_config_module&gt;
    ...
    CustomLog &quot;|D:/apps/apache/bin/rotatelogs.exe -l D:/logs/apache/access-%Y-%m-%d.log 86400&quot; common
&lt;/IfModule&gt;
</pre></div><p>The post <a rel="nofollow" href="https://myshittycode.com/2013/10/28/rotating-log-files-on-apache-http-server/">Rotating Log Files on Apache HTTP Server</a> appeared first on <a rel="nofollow" href="https://myshittycode.com">My Shitty Code</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://myshittycode.com/2013/10/28/rotating-log-files-on-apache-http-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">199</post-id>	</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Database Caching using Disk

Served from: myshittycode.com @ 2026-02-22 07:14:56 by W3 Total Cache
-->