<?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>Blog by Andreas Glaser &#187; Apache2</title>
	<atom:link href="http://www.andreas-glaser.com/tag/apache2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.andreas-glaser.com</link>
	<description>Development, Technology and such...</description>
	<lastBuildDate>Wed, 18 May 2011 23:16:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Apache2 &#8211; Perfect mod_expires configuration</title>
		<link>http://www.andreas-glaser.com/2009/12/14/apache2-perfect-mod_expires-configuration/</link>
		<comments>http://www.andreas-glaser.com/2009/12/14/apache2-perfect-mod_expires-configuration/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 13:37:41 +0000</pubDate>
		<dc:creator>Andreas Glaser</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[Apache2]]></category>
		<category><![CDATA[Modules]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=522</guid>
		<description><![CDATA[Well, &#8220;perfect&#8221; might be a little exaggerated although I consider this a good configuration at the moment. You can put this globally into your httpd.conf or separately in every vhost configuration file you need it. ?View Code BASH1 2 3 4 5 6 7 8 9 10 &#160; ExpiresActive On ExpiresByType text/css &#34;access plus 1 [...]]]></description>
			<content:encoded><![CDATA[<p>Well, &#8220;perfect&#8221; might be a little exaggerated although I consider this a good configuration at the moment.<br />
You can put this globally into your httpd.conf or separately in every vhost configuration file you need it.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p522code3'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p5223"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code" id="p522code3"><pre class="bash" style="font-family:monospace;">&nbsp;
        ExpiresActive On
        ExpiresByType text<span style="color: #000000; font-weight: bold;">/</span>css <span style="color: #ff0000;">&quot;access plus 1 month&quot;</span>
        ExpiresByType text<span style="color: #000000; font-weight: bold;">/</span>javascript <span style="color: #ff0000;">&quot;access plus 1 month&quot;</span>
        ExpiresByType application<span style="color: #000000; font-weight: bold;">/</span>x-javascript <span style="color: #ff0000;">&quot;access plus 1 month&quot;</span>
        ExpiresByType application<span style="color: #000000; font-weight: bold;">/</span>javascript <span style="color: #ff0000;">&quot;access plus 1 month&quot;</span>
        ExpiresByType image<span style="color: #000000; font-weight: bold;">/</span>png <span style="color: #ff0000;">&quot;access plus 1 year&quot;</span>
        ExpiresByType image<span style="color: #000000; font-weight: bold;">/</span>jpeg <span style="color: #ff0000;">&quot;access plus 1 year&quot;</span>
        ExpiresByType image<span style="color: #000000; font-weight: bold;">/</span>gif <span style="color: #ff0000;">&quot;access plus 1 year&quot;</span>
        ExpiresByType image<span style="color: #000000; font-weight: bold;">/</span>x-icon <span style="color: #ff0000;">&quot;access plus 1 month&quot;</span></pre></td></tr></table></div>

<p>Make sure you versionize your JavaScript/CSS to be able to force an update, in case you change them.<br />
<strong>Example:</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p522code4'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p5224"><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code" id="p522code4"><pre class="html" style="font-family:monospace;">&nbsp;
    My Example
&nbsp;
Some Content
&nbsp;
    &lt;script src=&quot;javascript.js?version=1&quot; type=&quot;text/javascript&quot;&gt;&lt;!--mce:0--&gt;&lt;/script&gt;</pre></td></tr></table></div>

<p>You should also give newly updated pictures new names!</p>
<p>Over and out,<br />
JaZz</p>
<fb:like href='http://www.andreas-glaser.com/2009/12/14/apache2-perfect-mod_expires-configuration/' send='' layout='standard' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.andreas-glaser.com/2009/12/14/apache2-perfect-mod_expires-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.htaccess &#8211; How to restrict browsing through directories</title>
		<link>http://www.andreas-glaser.com/2008/10/28/htaccess-how-to-restrict-browsing-through-directories/</link>
		<comments>http://www.andreas-glaser.com/2008/10/28/htaccess-how-to-restrict-browsing-through-directories/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 15:35:05 +0000</pubDate>
		<dc:creator>Andreas Glaser</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache2]]></category>
		<category><![CDATA[Httpd]]></category>
		<category><![CDATA[Webserver]]></category>

		<guid isPermaLink="false">http://www.andreas-glaser.com/?p=253</guid>
		<description><![CDATA[If you want to prevent users from browsing certain directories on your website you can use the powerful .htaccess  file (Apache only). With the .htaccess file you are able to override some default settings like allowing / denying users to browse through directories. This is very useful when you use a certain directory to save [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to prevent users from browsing certain directories on your website you can use the powerful .htaccess  file (<a title="Httpd" href="http://www.google.ie/search?hl=en&amp;client=firefox-a&amp;rls=org.mozilla%3Aen-GB%3Aofficial&amp;hs=syV&amp;q=httpd&amp;btnG=Search&amp;meta=" target="_blank">Apache only</a>). With the .htaccess file you are able to override some default settings like allowing / denying users to browse through directories. This is very useful when you use a certain directory to save for instance: templates, pictures, files or similar things (e.g. http://www.yourdomain.com/files).</p>
<p><strong>How to prevent users from browsing through directories&#8230;</strong></p>
<ol>
<li>Create a new file (txt) and rename it to .htaccess</li>
<li>Insert the following string into your new .htaccess file:

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p253code6'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2536"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p253code6"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># DENY CLIENTS TO BROWSE THE CURRENT AND ALL SUB DIRECTORIES</span>
&nbsp;
Options All <span style="color: #660033;">-Indexes</span></pre></td></tr></table></div>

</li>
<li>Upload this file into the directory which shall be not allowed to browse.</li>
</ol>
<p>Thats it!</p>
<p><em><strong>So long,<br />
Andreas Glaser (aka JaZz)</strong></em></p>
<fb:like href='http://www.andreas-glaser.com/2008/10/28/htaccess-how-to-restrict-browsing-through-directories/' send='' layout='standard' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.andreas-glaser.com/2008/10/28/htaccess-how-to-restrict-browsing-through-directories/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

