<?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>Webmaster-Source &#187; Apache</title>
	<atom:link href="https://www.webmaster-source.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.webmaster-source.com</link>
	<description>Useful Resources For Webmasters</description>
	<lastBuildDate>Thu, 24 Aug 2017 02:01:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>Put Your Website in Maintenance Mode With .htaccess</title>
		<link>https://www.webmaster-source.com/2009/09/25/put-your-website-in-maintenance-mode-with-htaccess/</link>
		<comments>https://www.webmaster-source.com/2009/09/25/put-your-website-in-maintenance-mode-with-htaccess/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 11:23:16 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[Maintenance]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2587</guid>
		<description><![CDATA[Sooner or later you&#8217;ll probably run into a case where you need to put up a &#8220;maintenance mode&#8221; page while working on the site (e.g. while moving a site to a different server). What&#8217;s the best way of doing that? First you create a small, static HTML page that will appear to your visitors, then [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Sooner or later you&#8217;ll probably run into a case where you need to put up a &#8220;maintenance mode&#8221; page while working on the site (e.g. while moving a site to a different server). What&#8217;s the best way of doing that? First you create a small, static HTML page that will appear to your visitors, then you put this at the top of your .htaccess file:</p>
<pre class="brush: plain; title: ; notranslate">
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/berightback\.html$
RewriteRule ^(.*)$ http://example.org/berightback.html [R=307,L]
</pre>
<p>If <em>you</em> still need to be able to access the live site while you perform the maintenance, you can add a condition permitting requests from your IP address. This line should be placed after the RewriteBase / line:</p>
<pre class="brush: plain; title: ; notranslate">RewriteCond %{REMOTE_ADDR} !^00\.000\.000\.000</pre>
<p>Be sure to replace the zeros in <code>00\.000\.000\.000</code> with the digits from your own IP address, which you can find by visiting <a href="http://www.whatismyip.com/">WhatIsMyIP.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2009/09/25/put-your-website-in-maintenance-mode-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Get Live Access Logs With a Simple Linux Command</title>
		<link>https://www.webmaster-source.com/2009/09/24/get-live-access-logs-with-a-simple-linux-command/</link>
		<comments>https://www.webmaster-source.com/2009/09/24/get-live-access-logs-with-a-simple-linux-command/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 11:16:53 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[stats]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2577</guid>
		<description><![CDATA[Here&#8217;s a neat little trick for those of you with SSH access to your Linux server. You can use a simple command to get a live-updated stream of your access log, so you can see hits as they come in. It&#8217;s sort of like the &#8220;spy&#8221; tool in Woopra or pMetrics, but geekier and with [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Here&#8217;s a neat little trick for those of you with SSH access to your Linux server. You can use a simple command to get a live-updated stream of your access log, so you can see hits as they come in. It&#8217;s sort of like the &#8220;spy&#8221; tool in <a href="http://www.woopra.com/">Woopra</a> or <a href="http://pmetrics.performancing.com/">pMetrics</a>, but geekier and with less visual polish. <img src="https://www.webmaster-source.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /></p>
<p style="text-align: center;"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-2578 imgborder" title="Linux &quot;tail -f&quot; on an Apache Access Log" src="//www.webmaster-source.com/wp-content/uploads/linux-tail-f.jpg" alt="Linux &quot;tail -f&quot; on an Apache Access Log" width="530" height="158" /></p>
<p>First you need to connect to the server with <a href="http://en.wikipedia.org/wiki/Secure_Shell">SSH</a>. Once you&#8217;re in, change your working directory to wherever Apache stashes its log files on your system. On my Ubuntu install it&#8217;s <code>/var/log/apache2</code>. So I would type <code>cd /var/log/apache2</code> to switch to that directory. Next, run the <code>tail</code> command like so:</p>
<pre class="brush: bash; title: ; notranslate">tail -f access.log</pre>
<p><code>Tail</code> normally outputs the last several lines of a file and then returns to a prompt, but with the <code>-f</code> argument it continues to monitor the file for changes, and outputs them. So as the Apache server writes to the log file, <code>tail</code> spits the new lines out on your screen.</p>
<p>When you&#8217;re done, press <code>Ctrl+C</code> to terminate the tail process and go back to the shell prompt.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2009/09/24/get-live-access-logs-with-a-simple-linux-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Saving Bandwidth and Speeding Up Your Site With GZIP and Browser Caching</title>
		<link>https://www.webmaster-source.com/2009/09/23/saving-bandwidth-and-speeding-up-your-site-with-gzip-and-browser-caching/</link>
		<comments>https://www.webmaster-source.com/2009/09/23/saving-bandwidth-and-speeding-up-your-site-with-gzip-and-browser-caching/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 11:42:23 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[bandwidth]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[transfer]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2570</guid>
		<description><![CDATA[There are a couple of easy adjustments you can make to your web server in order to decrease page loading times, save bandwidth, and reduce load on the server. All you have to do is add a couple of code snippets to either your Apache server configuration file (httpd.conf or apache2.conf) or an .htaccess file. [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>There are a couple of easy adjustments you can make to your web server in order to decrease page loading times, save bandwidth, and reduce load on the server. All you have to do is add a couple of code snippets to either your Apache server configuration file (httpd.conf or apache2.conf) or an .htaccess file.</p>
<p>Note that these require that your server have certain modules installed for this to work. You will need either mod_deflate or mod_gzip for GZIP compression and mod_expires for the browser caching trick.</p>
<h3>Enable Browser Caching</h3>
<p>When a web browser loads a page, it checks each item it requests (JavaScript, CSS, images, etc) against its local cache. If an item, say the stylesheet, hasn&#8217;t <em>expired</em> yet, then it will load the local copy instead of requesting a new one. Now if you were to instruct your server to set the expiration time for images, CSS, and JavaScript files to one month from the present, users viewing multiple pages of your site (even across multiple days) won&#8217;t tax your resources as much, as they will use the copies of your stylesheets and images that have already been downloaded.<span id="more-2570"></span></p>
<p>Insert this into your .htaccess file or Apache config, restarting Apache if you chose the latter:</p>
<pre class="brush: plain; title: ; notranslate">
&lt;FilesMatch &quot;\.(ico|flv|jpe?g|png|gif|js|css|swf)$&quot;&gt;
 ExpiresActive On
 ExpiresDefault &quot;access plus 1 month&quot;
&lt;/FilesMatch&gt;
</pre>
<p>Now any file with an extension of ICO, JPG, JPEG, PNG, GIF, JS, CSS, SWF will be set to expire one month from the time the browser caches it.</p>
<h3>GZIP Compression</h3>
<p>Now wouldn&#8217;t it be nice if you could cut down on the <em>size</em> of the file? There&#8217;s no point in doing it for images (which are already compressed) but you can greatly reduce the size of text-based files (HTML, JavaScript, CSS) by having the server compress them before sending them out.</p>
<p>Add this to your .htaccess or Apache config (restarting Apache if you chose the latter) as before:</p>
<pre class="brush: plain; title: ; notranslate">
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ \
 no-gzip dont-vary
SetEnvIfNoCase Request_URI \
 \.(?:exe|t?gz|zip|bz2|sit|rar)$ \
 no-gzip dont-vary
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</pre>
<p>This beast does several things. The first directive tells mod_deflate to get to work. The next several lines determine how mod_deflate will work. It will not affect GIF, JPG, PNG images or already-compressed archive files (e.g. ZIP or RAR), as there is no real benefit in doing so. The final three &#8220;BrowserMatch&#8221; lines deal with Internet Explorer&#8217;s funkiness.</p>
<h3>Is it Working?</h3>
<p>If you have <a href="http://getfirebug.com/">Firebug</a> and the handy <a href="http://code.google.com/speed/">Google Page Speed</a> extension installed, you can run a quick test to make sure everything is working right. There should be two lines mentioning &#8220;Leverage browser caching&#8221; and &#8220;Enable gzip compression.&#8221; They should be checked-off instead of having a red icon.</p>
<p style="text-align: center;"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-2572 imgborder" title="Firebug Speed Test: GZIP Compression" src="//www.webmaster-source.com/wp-content/uploads/firebug-gzip-compression.jpg" alt="Firebug Speed Test: GZIP Compression" width="548" height="174" /></p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2009/09/23/saving-bandwidth-and-speeding-up-your-site-with-gzip-and-browser-caching/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/


Served from: www.webmaster-source.com @ 2026-06-09 01:09:16 by W3 Total Cache
-->