<?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>AlanLok dot Com &#187; apache</title>
	<atom:link href="http://www.alanlok.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alanlok.com</link>
	<description>the place where I rave and rant about all my tech toys... and bore my friends with my camera :)</description>
	<lastBuildDate>Wed, 28 Sep 2011 02:04:51 +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>Locking down Apache Web Server</title>
		<link>http://www.alanlok.com/2009/07/23/locking-down-apache-web-server/</link>
		<comments>http://www.alanlok.com/2009/07/23/locking-down-apache-web-server/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 17:12:02 +0000</pubDate>
		<dc:creator>alan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.alanlok.com/?p=23</guid>
		<description><![CDATA[I was just looking through a security audit of some sites, and half of the complaints include &#8220;the ability for people to know your underlying technology&#8221;. For those who are using Apache 1.3 or above (and using a distro that has configuration files in /etc/httpd/conf.d), you will find this solution helpful. Simply create a file [...]]]></description>
			<content:encoded><![CDATA[<p>I was just looking through a security audit of some sites, and half of the complaints include &#8220;the ability for people to know your underlying technology&#8221;. For those who are using Apache 1.3 or above (and using a distro that has configuration files in /etc/httpd/conf.d), you will find this solution helpful. Simply create a file called <strong>/etc/httpd/conf.d/0-security.conf</strong> with the below content:</p>
<pre>ServerSignature Off<br/>
ServerTokens Prod<br/>
TraceEnable Off<br/>
&lt;Directory /&gt;<br/>
 &lt;LimitExcept POST GET HEAD&gt;<br/>
  Order deny,allow<br/>
  Deny from all<br/>
 &lt;/LimitExcept&gt;<br/>
&lt;/Directory&gt;</pre>
<p>Save it, restart httpd and you are &#8220;more&#8221; protected&#8230; a few notes:</p>
<ol>
<li> This assumes that your application will only use GET, POST or HEAD. If your application is fancy (or you don&#8217;t know your app, then you might want to get rid of the LimitExcept directive)</li>
<li> If your application (or application container such as PHP, Python or Java) generates additional HTTP headers that identify their technology, then you might want to use <a href="http://httpd.apache.org/docs/2.2/mod/mod_headers.html">mod_headers</a> to them.</li>
<li>Anyone with an ounce of network knowledge would know that you can figure out the underlying technology by probing at the TCP layers (nmap with the OS fingerprinting option is very handy). So don&#8217;t let auditors fool you &#8211; you can&#8217;t hide unless you have a security device in front of your servers that remove traces of OS &#8220;uniqueness&#8221; in layer 3.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.alanlok.com/2009/07/23/locking-down-apache-web-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

