<?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>gHacks technology news &#187; apache</title>
	<atom:link href="http://www.ghacks.net/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghacks.net</link>
	<description>A technology blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description>
	<lastBuildDate>Tue, 24 Nov 2009 11:26:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Apache troubleshooting tips</title>
		<link>http://www.ghacks.net/2009/11/08/apache-troubleshooting-tips/</link>
		<comments>http://www.ghacks.net/2009/11/08/apache-troubleshooting-tips/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 00:21:57 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[The Web]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache log]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[apache2ctl]]></category>
		<category><![CDATA[log files]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=18266</guid>
		<description><![CDATA[How many times have you installed a LAMP server only to find Apache doesn&#8217;t seem to want to run right? Or you install a new module only to see Apache try to download pages as file, instead of displaying them on screen?
There are a hundred and one thousand things that can go wrong with any [...]]]></description>
			<content:encoded><![CDATA[<p>How many times have you installed a LAMP server only to find Apache doesn&#8217;t seem to want to run right? Or you install a new module only to see Apache try to download pages as file, instead of displaying them on screen?</p>
<p>There are a hundred and one thousand things that can go wrong with any web server installation. From a fresh installation to an installation that has been running for a long time, you never know when something is going to cause your web server to go astray. When it does happen, it&#8217;s always nice to know that, usually, Occam&#8217;s Razor applies.</p>
<p>In this tutorial you will find some advice that will help you through some of the more common issues that can pop up with an Apache web server.</p>
<p><span id="more-18266"></span><strong>Is your server actually running?</strong></p>
<p>Believe it or not, this has happened to plenty of administrators. You take the server down, do some maintenance, and when you go to check out the server you&#8217;re getting errors. The first thing you do, naturally, is check out that <strong>/etc/apache2/apache.conf</strong> file to make sure your syntax is correct. But it&#8217;s perfect! What&#8217;s up? The first thing you might want to check is to make sure the server is running. But you don&#8217;t want to just issue the command to start the server or reload the server. Instead, issue the command:</p>
<p><em>sudo /etc/init.d/apache2 status</em></p>
<p>Which should return something like:</p>
<p><em>* apache is running (pid 9751).</em></p>
<p>If not, start the server with either:</p>
<p><em>sudo /etc/init.d/apache2 start</em></p>
<p>or</p>
<p><em>sudo apache2ctl start</em></p>
<p>NOTE: If you are using a distribution like Fedora, SuSE, or Mandriva you will need to first <em>su </em>to the root user and issue the above commands WITHOUT using <em>sudo</em>.</p>
<p><strong>It&#8217;s not running and it won&#8217;t start</strong></p>
<p>Did you just make changes to your Apache configuration file? Are the changes correct? If you&#8217;re not sure, you can use the <em>apache2ctl </em>command to check the syntax of your configuration file. This is done with the command:</p>
<p><em>sudo apache2ctl configtext</em></p>
<p><em><span style="font-style: normal">The above command should report:</span></em></p>
<p><em><span style="font-style: normal">Syntax OK</span></em></p>
<p><em><strong><span style="font-style: normal"><span style="font-weight: normal">If you don&#8217;t get an OK, you will get information that points to the errors in your configuration file. </span></span></strong></em></p>
<p><em><strong><span style="font-style: normal"><span style="font-weight: normal"><strong>Apache wants to download .php files!</strong></span></span></strong></em></p>
<p><em><strong><span style="font-style: normal"><span style="font-weight: normal"><strong><span style="font-weight: normal">This is another common issue. When you add a new tool on your web server (such as Drupal), if your configuration file is set up properly, any .php file might not be displayed. Instead any attempt to view a .php file will instead have your browser trying to download the file. Why is this? Apache must be informed that certain extensions are to be displayed, not downloaded. This is done from within the Apache configuration file. Open up that file (in the Ubuntu server it will be </span>/etc/apache2/apache2.conf<span style="font-weight: normal">) and first look for the following line:</span></strong></span></span></strong></em></p>
<p><em><strong><span style="font-weight: normal"><strong><span style="font-weight: normal">DirectoryIndex index.html</span></strong></span></strong></em></p>
<p>If that file doesn&#8217;t include <em>index.php </em>nearly all sites that use php will be rendered useless.</p>
<p>The second line to look for is:</p>
<p><em>AddHandler application/x-httpd-php .php</em></p>
<p>If you find this line, and it is commented out, make sure you uncomment it by removing the &#8220;#&#8221; character. If it is not there add it to the bottom of the configuration file.</p>
<p>And, as always, when you make a change to the configuration file, restart Apache.</p>
<p><strong>Know where to look for problems</strong></p>
<p>Finally, it is crucial that you know where to first turn when the above doesn&#8217;t help you out. Any time I have an issue with Apache where Occam&#8217;s Razor does not apply, the first place I turn is the log files.</p>
<p>If you look in <strong>/var/log/apache2</strong> you will find, at least, the following files:</p>
<ul>
<li><span style="background-color: #ffffff">access.log: This keeps track of any connection made to your server.</span></li>
<li><span style="background-color: #ffffff">error.log: This keeps track of any errors that occur with Apache.</span></li>
<li><span style="background-color: #ffffff">other_vhosts_access.log: This is where virtual hosts will log when the virtual host has not been prescribed its own log file.</span></li>
</ul>
<p>Of course, as your site evolves so will your available log files. Regardless of what you find in <strong>/var/log/apache2</strong>, that is where you should always first turn when you have problems. Even before you google.</p>
<p><strong>Final thoughts</strong></p>
<p>Now you should be able to handle some of the more common issues with the Apache server. And if your problem isn&#8217;t common, you also know where to turn to find clues that will lead you down the right path to correction.</p>

	Tags: <a href="http://www.ghacks.net/tag/apache/" title="apache" rel="tag">apache</a>, <a href="http://www.ghacks.net/tag/apache-log/" title="apache log" rel="tag">apache log</a>, <a href="http://www.ghacks.net/tag/apache2/" title="apache2" rel="tag">apache2</a>, <a href="http://www.ghacks.net/tag/apache2ctl/" title="apache2ctl" rel="tag">apache2ctl</a>, <a href="http://www.ghacks.net/tag/log-files/" title="log files" rel="tag">log files</a>, <a href="http://www.ghacks.net/tag/php/" title="php" rel="tag">php</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/12/28/portable-web-server/" title="Portable Web Server (December 28, 2008)">Portable Web Server</a> (8)</li>
	<li><a href="http://www.ghacks.net/2009/09/17/local-apache-web-server-wampserver/" title="Local Apache Web Server Wampserver (September 17, 2009)">Local Apache Web Server Wampserver</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/07/23/how-to-install-a-lamp-server/" title="How to: Install a LAMP server (July 23, 2009)">How to: Install a LAMP server</a> (7)</li>
	<li><a href="http://www.ghacks.net/2007/01/31/host-your-own-webserver/" title="Host your own webserver (January 31, 2007)">Host your own webserver</a> (18)</li>
	<li><a href="http://www.ghacks.net/2009/03/29/wordpress-template-tags-you-should-know/" title="Wordpress template tags you should know (March 29, 2009)">Wordpress template tags you should know</a> (4)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/11/08/apache-troubleshooting-tips/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Local Apache Web Server Wampserver</title>
		<link>http://www.ghacks.net/2009/09/17/local-apache-web-server-wampserver/</link>
		<comments>http://www.ghacks.net/2009/09/17/local-apache-web-server-wampserver/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 09:08:17 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache server]]></category>
		<category><![CDATA[apache web server]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wampserver]]></category>
		<category><![CDATA[webmaster]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=16430</guid>
		<description><![CDATA[Running a local Apache web server is essential for many webmasters. It is always a good idea to test code locally before publishing it on the Internet. Professional webmasters usually test their code in a local web server before it gets published. Mainly to avoid possible downtimes in the live environment but also to avoid [...]]]></description>
			<content:encoded><![CDATA[<p>Running a local Apache web server is essential for many webmasters. It is always a good idea to test code locally before publishing it on the Internet. Professional webmasters usually test their code in a local web server before it gets published. Mainly to avoid possible downtimes in the live environment but also to avoid the hassle of having to upload and edit code on the Internet or network. It&#8217;s simply faster to test everything locally.</p>
<p>Wampserver is an Apache web server for the Windows operating system. It provides in many regards the same functionality of other web server solutions like <a href="http://www.ghacks.net/2007/01/31/host-your-own-webserver/">XAMPP</a> or <a href="http://www.ghacks.net/2009/03/28/home-web-server/">Home Web Server</a> which we have reviewed in the past. The latest version of the local web server package will install Apache 2.2.11, MySQL 5.1.36 and PHP 5.3.0 on the local computer system.</p>
<p><span id="more-16430"></span>One interesting unique feature is the ability to add different versions of Apache, MySQL and PHP to the installation in the form of add-ons. This can be very handy to test a website locally under multiple different Apache, MySQL or PHP release versions.</p>
<p><img src="http://www.ghacks.net/wp-content/uploads/2009/09/apache_web_server.gif" alt="apache web server" title="apache web server" width="281" height="289" class="alignnone size-full wp-image-16431" /></p>
<p>The installation of Wampserver will always install the latest versions of Apache, MySQL and PHP. One interesting security feature is the ability to limit access to the web server to localhost. It is required to click on the &#8220;put online&#8221; option to make it available to other computer systems as well.</p>
<p>Additional Apache, MySQL and PHP versions can be installed from the Wamp add-ons <a href="http://www.wampserver.com/en/add-ons.php">page</a>. All add-ons are provided as executables that can be installed easily on the operating system.</p>
<p>Webmasters who need to test code offline can use Wampserver to do so. It is especially useful to test code against multiple versions of Apache, MySQL and PHP. Something that the other home server solutions do not provide.</p>
<p><a href="http://www.wampserver.com/en/">Wampserver</a> is Open Source and can be downloaded from the developer&#8217;s website.</p>

	Tags: <a href="http://www.ghacks.net/tag/apache/" title="apache" rel="tag">apache</a>, <a href="http://www.ghacks.net/tag/apache-server/" title="apache server" rel="tag">apache server</a>, <a href="http://www.ghacks.net/tag/apache-web-server/" title="apache web server" rel="tag">apache web server</a>, <a href="http://www.ghacks.net/tag/mysql/" title="mysql" rel="tag">mysql</a>, <a href="http://www.ghacks.net/tag/php/" title="php" rel="tag">php</a>, <a href="http://www.ghacks.net/tag/wampserver/" title="wampserver" rel="tag">wampserver</a>, <a href="http://www.ghacks.net/tag/webmaster/" title="webmaster" rel="tag">webmaster</a>, <a href="http://www.ghacks.net/tag/xampp/" title="xampp" rel="tag">xampp</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/12/28/portable-web-server/" title="Portable Web Server (December 28, 2008)">Portable Web Server</a> (8)</li>
	<li><a href="http://www.ghacks.net/2009/07/23/how-to-install-a-lamp-server/" title="How to: Install a LAMP server (July 23, 2009)">How to: Install a LAMP server</a> (7)</li>
	<li><a href="http://www.ghacks.net/2007/01/31/host-your-own-webserver/" title="Host your own webserver (January 31, 2007)">Host your own webserver</a> (18)</li>
	<li><a href="http://www.ghacks.net/2009/01/02/web-development-standardizing-variables-to-code-faster/" title="Web Development: Standardizing variables to code faster (January 2, 2009)">Web Development: Standardizing variables to code faster</a> (18)</li>
	<li><a href="http://www.ghacks.net/2009/02/01/web-development-php-what-role-does-it-fill/" title="Web Development: PHP &#8211; what role does it fill (February 1, 2009)">Web Development: PHP &#8211; what role does it fill</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/09/17/local-apache-web-server-wampserver/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to: Install a LAMP server</title>
		<link>http://www.ghacks.net/2009/07/23/how-to-install-a-lamp-server/</link>
		<comments>http://www.ghacks.net/2009/07/23/how-to-install-a-lamp-server/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 17:43:55 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[lamp server]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tasksel]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=14678</guid>
		<description><![CDATA[If you&#8217;ve read enough of my Ghacks tutorials you have most likely come across mention of a LAMP server. If you are not sure what a LAMP server is:

Linux
Apache
MySQL
P (can mean PHP or PERL &#8211; depends upon your needs)

LAMP servers are very popular, cheap, effective, flexible, and reliable servers. But how are they installed? Actually, [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve read enough of my Ghacks tutorials you have most likely come across mention of a LAMP server. If you are not sure what a LAMP server is:</p>
<ul>
<li>Linux</li>
<li>Apache</li>
<li>MySQL</li>
<li>P (can mean PHP or PERL &#8211; depends upon your needs)</li>
</ul>
<p>LAMP servers are very popular, cheap, effective, flexible, and reliable servers. But how are they installed? Actually, it&#8217;s not that hard. In this tutorial I am going to show you how to install a LAMP in two different ways: From the command line (using separate tools) and using the <em>tasksel</em> tool.</p>
<p><span id="more-14678"></span><strong>Hardware needed</strong></p>
<p>Fortunately a LAMP server can be installed on lower-end hardware and still serve as a fairly efficient server. Naturally if you are going to be using your LAMP server for high traffic, you will want to select your hardware wisely.</p>
<p><strong>Install prerequisite</strong></p>
<p>Before you begin the installation of your server you will need to have your operating system installed. This is the &#8220;L&#8221; of LAMP. So find your favorite Linux distribution and install the operating system. For the purposes of this installation I am going to be installing on a Ubuntu 9.04 server installation. This will be a console only server (no GUI desktop) which is fine because the installation is done via command line only.</p>
<p>Once you have your operating system installed you are ready to install your server.</p>
<p><strong>Apache</strong></p>
<p>This is the easiest portion to install. Either log in to your console or open up a terminal window (if you are working from a GUI desktop) and enter the following command:<br />
<code>sudo apt-get install apache2</code></p>
<p>You will have to enter your sudo user password for this installation to continue. Once this installation is complete check it by pointing a browser to that server IP address. You should instantly know if Apache is up and running.</p>
<p><strong>PHP</strong></p>
<p>For the purposes of this article we will assume the &#8220;P&#8221; stands for PHP. To install PHP (and all of its requirements) issue the command:</p>
<p><code>sudo apt-get install php5 libapache2-mod-php5</code></p>
<p>Once this installation is complete restart Apache with the command:</p>
<p><code>sudo /etc/init.d/apache2 restart</code></p>
<p>Let&#8217;s make sure this portion works properly. To test this create a file in the Apache document root (for this install it will be <strong>/var/www</strong>) called test.php. The contents of this file will be:<br />
<code>&lt; ?php phpinfo(); ?&gt;</code></p>
<p>Save that file and then point your browser to http://IP_ADDRESS/test.php</p>
<p>Where IP_ADDRESS is the actual IP address of your server.</p>
<p>You should see &#8220;Test PHP Page&#8221; written on your browsers page. If so, you&#8217;re good to go.</p>
<p><strong>MySQL</strong></p>
<p>Now to install MySQL. To do this issue the command:</p>
<p><code>sudo apt-get install mysql-server</code></p>
<p>Once this is done you then need to set a password for MySQL. To do this issue the command:</p>
<p><code>mysql -u root</code></p>
<p>which will put you in the MySQL prompt. From this prompt (which looks like <em>mysql&gt; </em>) enter the command:<br />
<code>SET PASSWORD FOR 'root'@'localhost' = PASSWORD('YOURPASSWORD');</code></p>
<p>Where YOURPASSWORD is the password you want to use for the mysql user.</p>
<p>Now start your MySQL server with the command:</p>
<p><code>/etc/init.d/mysql start</code></p>
<p>That&#8217;s it. Your LAMP server is up and running.</p>
<p><strong>The quick version</strong></p>
<p>You can actually install a full-on LAMP server on a (Ubuntu server install) with a single command:</p>
<p><code>sudo tasksel</code></p>
<p>You will need to select LAMP from the list and you will eventually be prompted for a MySQL password. That&#8217;s it.</p>
<p><strong>Final thoughts</strong></p>
<p>Getting a powerful, flexible web server up and running will take you less time and effort than you think. LAMP servers are an outstanding choice for your web servers&#8217; needs.</p>

	Tags: <a href="http://www.ghacks.net/tag/apache/" title="apache" rel="tag">apache</a>, <a href="http://www.ghacks.net/tag/lamp/" title="LAMP" rel="tag">LAMP</a>, <a href="http://www.ghacks.net/tag/lamp-server/" title="lamp server" rel="tag">lamp server</a>, <a href="http://www.ghacks.net/tag/mysql/" title="mysql" rel="tag">mysql</a>, <a href="http://www.ghacks.net/tag/php/" title="php" rel="tag">php</a>, <a href="http://www.ghacks.net/tag/tasksel/" title="tasksel" rel="tag">tasksel</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/12/28/portable-web-server/" title="Portable Web Server (December 28, 2008)">Portable Web Server</a> (8)</li>
	<li><a href="http://www.ghacks.net/2009/02/16/php-what-it-does-and-what-it-doesnt/" title="PHP &#8211; what it does and what it doesn&#8217;t (February 16, 2009)">PHP &#8211; what it does and what it doesn&#8217;t</a> (4)</li>
	<li><a href="http://www.ghacks.net/2009/09/17/local-apache-web-server-wampserver/" title="Local Apache Web Server Wampserver (September 17, 2009)">Local Apache Web Server Wampserver</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/01/02/web-development-standardizing-variables-to-code-faster/" title="Web Development: Standardizing variables to code faster (January 2, 2009)">Web Development: Standardizing variables to code faster</a> (18)</li>
	<li><a href="http://www.ghacks.net/2009/02/01/web-development-php-what-role-does-it-fill/" title="Web Development: PHP &#8211; what role does it fill (February 1, 2009)">Web Development: PHP &#8211; what role does it fill</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/07/23/how-to-install-a-lamp-server/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Install mod_security for better Apache security</title>
		<link>http://www.ghacks.net/2009/07/15/install-mod_security-for-better-apache-security/</link>
		<comments>http://www.ghacks.net/2009/07/15/install-mod_security-for-better-apache-security/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 01:09:31 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[The Web]]></category>
		<category><![CDATA[Tutorials Advanced]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache security]]></category>
		<category><![CDATA[httpd.conf]]></category>
		<category><![CDATA[mod_security]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=14396</guid>
		<description><![CDATA[Recently I wrote an article to help you secure your Linux Apache Installation (see &#8220;Five ways to help secure Apache on Linux&#8221;). In that article I mentioned using Apache&#8217;s mod_security, but didn&#8217;t have the room for a tutorial on its installation. Well, here&#8217;s the how to on installing this outstanding helper for Apache security.
What is [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I wrote an article to help you secure your Linux Apache Installation (see &#8220;<a title="Five ways to secure Apache on Linux" href="http://www.ghacks.net/2009/07/13/five-ways-to-help-secure-apache-on-linux/" target="_blank">Five ways to help secure Apache on Linu</a>x&#8221;). In that article I mentioned using Apache&#8217;s mod_security, but didn&#8217;t have the room for a tutorial on its installation. Well, here&#8217;s the how to on installing this outstanding helper for Apache security.</p>
<p><strong>What is mod_security?</strong></p>
<p>The mod_security addition to Apache is a modular way to add or remove various security features to your Apache server. You can add or remove these modules by simply adding or removing (or commenting out) lines to your <strong>httpd.conf</strong> file and restarting the httpd daemon. And installing mod_rewrite is as easy as it is to install.</p>
<p><span id="more-14396"></span><strong>Getting and installing</strong></p>
<p>I am going to take you through the installation of mod_security on a CentOS distribution. There will be a combination of using yum and installing from source. I will assume Apache is already installed.</p>
<p>There are a few ways to install this package. You can install from source, but that will require you install numerous dependencies just for the compilation alone. Since we&#8217;re looking at CentOS (and this will apply to Red Hat and Fedora as well) you can use Yum for easy installation. But if you fire Yum up you will find that mod_security is not in the standard repositories. Fortunately there is an easy way to add a repo for this installation. The command to add the repostority is:<br />
<code>su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm'</code></p>
<p>You will have to answer &#8216;Y&#8217; to a couple of questions to finish the installation. Once you have added the repository issue the command:</p>
<p><em>yum install mod_security</em></p>
<p>to install the system. You will have to accept any dependencies needed for your system to complete the installation. Once mod_security is installed you are ready to get it up and running on your Apache server.</p>
<p><strong>Basic configuration</strong></p>
<p>Issue the command:</p>
<p><em>grep -n security2_module httpd.conf<br />
</em></p>
<p>from within the <strong>/etc/httpd/conf/ </strong>directory. If you do not see any output that means you have to add the directive to your <strong>httpd.conf</strong> file. This is simple. At the end of your module loading section add the following line:</p>
<p><em>LoadModule security2_module modules/mod_security2.so<br />
</em></p>
<p>Now save the file and restart Apache with the command:</p>
<p><em>/etc/rc.d/init.d/httpd restart</em></p>
<p>You should not receive any errors at this point.</p>
<p>The most difficult aspect of using mod_security is the the IfModule section in the <strong>httpd.conf</strong> file. The reason this section is so complex is because there are so many possible options. The best chance you have of getting familar with this is by taking a glance at the <a title="Configuration Directives" href="http://modsecurity.org/documentation/modsecurity-apache/2.5.9/html-multipage/configuration-directives.html" target="_blank">Configuration Directives</a> page on the mod_security web site. To give you an example of a configuration directive section take a look at the following sample in Figure 1.</p>
<div id="attachment_14398" class="wp-caption alignleft" style="width: 310px"><a href="http://www.ghacks.net/wp-content/uploads/2009/07/mod_sec1.png"><img class="size-medium wp-image-14398" src="http://www.ghacks.net/wp-content/uploads/2009/07/mod_sec1-500x310.png" alt="Figure 1" width="300" height="186" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>As you can see this section seems fairly complex. But this is mostly a basic sample of what mod_security can do. In this sample we do the following:</p>
<ul>
<li>SecFilterEngine On: Start the engine</li>
<li>SecFilterDefaultAction: Set the default action for the module. Notice in the sample code i have the default action set to &#8220;allow&#8221;. For higher security you will want to set this to &#8220;deny&#8221;.</li>
<li>SecFilterScanPOST: Tell mod_security to scan Payloads as well as Get requests.</li>
<li>SecFilterCheckURLEncoding: Check for valid hex values in requests.</li>
<li>SecFilterCheckUnicoding: Set this to off if your web site does not use unicoding.</li>
<li>SecFilterForceByteRange: Set allowable ascii values in GET request and in FORM data posts.</li>
<li>SecUploadDir: Set the upload directory.</li>
<li>SecUploadKeepFiles: This must be set to On for the above to be used. For security&#8217;s sake you want to set it to  Off so upload files are not saved.</li>
<li>SecAuditEngine: Enables the logging facility. This value is set to either RelevantOnly or DynamicOrRelevant.</li>
<li>SecAuditLog: The location of the log file.</li>
<li>SecFilterDebugLog: Set the debug log file.</li>
<li>SecFilterDebugLevel: Set the debug level.</li>
</ul>
<p>That is the minimum directives I would employ for your mod_security configuration.</p>
<p>Once you finish this section, restart Apache again and enjoy a much more secure Apache server.</p>
<p><strong>Final thoughts</strong></p>
<p>Of course this just scratches the surface of mod_security. To really get the most of this powerful feature you will want to really comb through the directives section on the mod_security site.</p>

	Tags: <a href="http://www.ghacks.net/tag/apache/" title="apache" rel="tag">apache</a>, <a href="http://www.ghacks.net/tag/apache-security/" title="apache security" rel="tag">apache security</a>, <a href="http://www.ghacks.net/tag/httpd-conf/" title="httpd.conf" rel="tag">httpd.conf</a>, <a href="http://www.ghacks.net/tag/mod_security/" title="mod_security" rel="tag">mod_security</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/07/13/five-ways-to-help-secure-apache-on-linux/" title="Five ways to help secure Apache on Linux (July 13, 2009)">Five ways to help secure Apache on Linux</a> (5)</li>
	<li><a href="http://www.ghacks.net/2006/12/05/unsuggester-and-some-apache-htacces-tips/" title="Unsuggester and some Apache .htaccess tips (December 5, 2006)">Unsuggester and some Apache .htaccess tips</a> (2)</li>
	<li><a href="http://www.ghacks.net/2008/03/31/secure-your-server-with-htaccess/" title="Secure your server with htaccess (March 31, 2008)">Secure your server with htaccess</a> (2)</li>
	<li><a href="http://www.ghacks.net/2008/12/28/portable-web-server/" title="Portable Web Server (December 28, 2008)">Portable Web Server</a> (8)</li>
	<li><a href="http://www.ghacks.net/2009/09/17/local-apache-web-server-wampserver/" title="Local Apache Web Server Wampserver (September 17, 2009)">Local Apache Web Server Wampserver</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/07/15/install-mod_security-for-better-apache-security/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Five ways to help secure Apache on Linux</title>
		<link>http://www.ghacks.net/2009/07/13/five-ways-to-help-secure-apache-on-linux/</link>
		<comments>http://www.ghacks.net/2009/07/13/five-ways-to-help-secure-apache-on-linux/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 20:09:06 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[document root]]></category>
		<category><![CDATA[mod_security]]></category>
		<category><![CDATA[securing apache]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=14373</guid>
		<description><![CDATA[Apache is one of the most popular web servers available. And most Apache installations are running on Linux servers. Anyone running Linux will tell you that the operating system (be it on a server or desktop) enjoys a level of security many operating systems do not enjoy. But does that mean you can just install [...]]]></description>
			<content:encoded><![CDATA[<p>Apache is one of the most popular web servers available. And most Apache installations are running on Linux servers. Anyone running Linux will tell you that the operating system (be it on a server or desktop) enjoys a level of security many operating systems do not enjoy. But does that mean you can just install Apache and assume it 100% safe? No. There are always ways to improve your security on just about every level.</p>
<p>In this article I will show you five simple ways to make your Linux Apache installation more secure. And of course you should always know that even with five new means of making your install more secure, that doesn&#8217;t mean it is perfectly safe from attack. Even after securing your installation, you should always keep watch over your server by checking log files and using standard security tools.</p>
<p>With that said, let&#8217;s get our Apache security on!</p>
<p><span id="more-14373"></span>1. Update, update, update! One of the biggest no nos Linux administrators make is to &#8220;set it and forget it&#8221;. This should not be your standard policy. There are always updates that close new holes and patch security flaws. This holds true for Apache as much as it does any other system or application. Keep watch, using your normal means of update, for any security update for Apache or any constituent component you have installed. By doing this you will ensure your web server is safe from any new known issues.</p>
<p>2. Disable modules you do not use. If you check the Apache configuration file. Most often this file is called <strong>httpd.conf</strong> and its location will depend upon what distribution you are running (For example CentOS has this file in <strong>/etc/httpd/conf/</strong> whereas Ubuntu locates it in <strong>/etc/apache2</strong>). If you examine that file you will see quite a few modules listed. These modules will look like:</p>
<p><code>LoadModule auth_basic_module modules/mod_auth_basic.so<br />
LoadModule auth_digest_module modules/mod_auth_digest.so<br />
LoadModule authn_file_module modules/mod_authn_file.so<br />
LoadModule authn_alias_module modules/mod_authn_alias.so<br />
LoadModule authn_anon_module modules/mod_authn_anon.so</code></p>
<p>You might have to look up what some of these modules do to know if you need them or not. But there is no reason to load a module if you are not going to use it. To keep a module from loading place a comment in front of the line. You will have to restart Apache for this change to take effect.</p>
<p>3. Limit the request sizes allowed. Denial of Service attacks remain one of the most popular attacks on web sites because they are the easiest to pull off. One way to protect your site from DoS attacks is to use the following directives wisely: LimitRequestBody, LimitRequestFields, LimitRequestFieldSize, LimitRequestLine, and LimitXMLRequestBody within a Directory tag (the document root is probably the best place for this). By default Apache sets these directives to unlimited which means any size of request can be made. You will want to investigate these directives and configure them to suit your web sites needs. Unless it is absolutely necessary, do not set them to unlimited.</p>
<p>4. Use mod_security. This is the most important module you can use. This one module handles such tasks as: Simple filtering, regular expression filtering, server identity masking, and URL encoding validation. It is likely you will have to install mod_security, because the default Apache install does not include this module. Once installed you will want to make sure you at least add the &#8220;unique_id&#8221; and &#8220;security2&#8243; directives in your Apache module section and then restart Apache. I will deal with this module in its own tutorial coming up very soon.</p>
<div id="attachment_14375" class="wp-caption alignleft" style="width: 205px"><img class="size-full wp-image-14375" src="http://www.ghacks.net/wp-content/uploads/2009/07/apache.png" alt="Figure 1" width="195" height="125" /><p class="wp-caption-text">Figure 1</p></div>
<p>5. Restrict browsing to your document root. The last thing you want is to allow browser to peek outside of the Apache document root (Such as <strong>/var/www/html </strong>or <strong>/var/www/</strong>). To do this you will want to configure your document root directory entry as shown in Figure 1. This will</p>
<p>Of course if you want to add options to any directory inside of the document root you will have to give that directory its own Directory entry.</p>
<p><strong>Final thoughts</strong></p>
<p>There are plenty more ways to secure your Apache installation, but these will get you started. Can you think of other ways to secure an Apache installation? If so, share them with your fellow ghacks readers.</p>

	Tags: <a href="http://www.ghacks.net/tag/apache/" title="apache" rel="tag">apache</a>, <a href="http://www.ghacks.net/tag/document-root/" title="document root" rel="tag">document root</a>, <a href="http://www.ghacks.net/tag/mod_security/" title="mod_security" rel="tag">mod_security</a>, <a href="http://www.ghacks.net/tag/securing-apache/" title="securing apache" rel="tag">securing apache</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/07/15/install-mod_security-for-better-apache-security/" title="Install mod_security for better Apache security (July 15, 2009)">Install mod_security for better Apache security</a> (2)</li>
	<li><a href="http://www.ghacks.net/2006/12/05/unsuggester-and-some-apache-htacces-tips/" title="Unsuggester and some Apache .htaccess tips (December 5, 2006)">Unsuggester and some Apache .htaccess tips</a> (2)</li>
	<li><a href="http://www.ghacks.net/2008/03/31/secure-your-server-with-htaccess/" title="Secure your server with htaccess (March 31, 2008)">Secure your server with htaccess</a> (2)</li>
	<li><a href="http://www.ghacks.net/2008/12/28/portable-web-server/" title="Portable Web Server (December 28, 2008)">Portable Web Server</a> (8)</li>
	<li><a href="http://www.ghacks.net/2009/09/17/local-apache-web-server-wampserver/" title="Local Apache Web Server Wampserver (September 17, 2009)">Local Apache Web Server Wampserver</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/07/13/five-ways-to-help-secure-apache-on-linux/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Create Interactive Classroom Pages with CourseForum</title>
		<link>http://www.ghacks.net/2009/03/23/create-interactive-classroom-pages-with-courseforum/</link>
		<comments>http://www.ghacks.net/2009/03/23/create-interactive-classroom-pages-with-courseforum/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 14:06:13 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[The Web]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[classroom]]></category>
		<category><![CDATA[classroom software]]></category>
		<category><![CDATA[courseforum]]></category>
		<category><![CDATA[courses]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=11405</guid>
		<description><![CDATA[If you are a teacher or have any need for a classroom-based Wiki project, I have the perfect solution for you. I discovered CourseForum a few years back when I was looking for a web-based software that could help a peer create a web site for her class that could help students stay organized. There [...]]]></description>
			<content:encoded><![CDATA[<p>If you are a teacher or have any need for a classroom-based Wiki project, I have the perfect solution for you. I discovered <a title="CourseForum" href="http://www.projectforum.com/cf/index.html" target="_blank">CourseForum</a> a few years back when I was looking for a web-based software that could help a peer create a web site for her class that could help students stay organized. There were a number of possibilities, but none of them as simple to use as CourseForum. With this web-based software students could:</p>
<ul>
<li>Get course information</li>
<li>Contact the instructor</li>
<li>Read or download lecture notes</li>
<li>Get assignments</li>
<li>Ask questions and get answers</li>
<li>Communicate with other students</li>
</ul>
<p>CourseForum is incredibly easy to &#8220;install&#8221; on Linux, Windows, Mac,? FreeBSD, or Solaris and can be accessed from any web browser. Let&#8217;s take a look at this classroom software from the Linux point of view.</p>
<p><span id="more-11405"></span><strong>Getting and Install</strong>ing</p>
<p>Since CourseForum even has its own server built in you can install CourseForum anywhere on a Linux machine. CourseForum comes in a single executable binary that starts and runs CourseForum on port 3455. So after you download the demo follow these steps (as either the root user or using sudo):</p>
<p>Untar the package into your servers&#8217; document root (i.e. <strong>/var/www/html</strong> for Fedora <strong>/var/www </strong>in Ubuntu)</p>
<p>Change into the newly created directory (<strong>courseforum-linux</strong>) and issue the command:</p>
<p><em>./courseforum &amp;</em></p>
<p>The CourseForum daemon will start and you can now point your browser to:</p>
<p>http://IP_OR_DOMAIN:3445</p>
<p>Where IP_OR_DOMAIN is either the IP address or domain the server is on.</p>
<div id="attachment_11404" class="wp-caption alignleft" style="width: 310px"><a href="http://www.ghacks.net/wp-content/uploads/2009/03/courseforum_admin.png"><img class="size-medium wp-image-11404" src="http://www.ghacks.net/wp-content/uploads/2009/03/courseforum_admin-500x275.png" alt="CourseForum Admin Page" width="300" height="165" /></a><p class="wp-caption-text">CourseForum Admin Page</p></div>
<p>This address will take you to the front page of CourseForum. The first thing you will need to do (before you can do anything else) is set an administrative password. Once you do that you can access the administration page and start building your course. NOTE: The demo is restricted to only a single course. If you purchase the full version you can create unlimited courses.</p>
<p>As you can see (in the image to the left) all administration tasks are taken care of in one window. There isn&#8217;t a lot of admin work to do with this software which makes it an even better solution for busy instructors.</p>
<p>Some of the more important tasks your instructors will want to do are:</p>
<ul>
<li>Messages: This is really just the welcome message displayed on the front page of CourseForum.</li>
<li>Custom Links: This isn&#8217;t really what it sounds like. What this feature does is allow you to create custom? commands that can do any number of things like formatting or integrating third-party content. There is a good <a title="CourseForum Custom Links Howto" href="http://www.courseforum.com/howto_customlinks.html" target="_blank">how-to page</a> on the CourseForum site to illustrate how these are created.</li>
<li>RSS/Email Notification: If you want to enable RSS feeds and/or email notification on your CourseForum site you will have to enter the information for your SMTP server here.</li>
<li>Web Views: This allows you to create a read-only version of the CourseForum. Since the basis of CourseForum is a wiki, any registered user will be able to edit pages, so you will want to be ablel to serve up versions of pages (such as Syllaubus, lectures, etc) that are read-only for the public to view.</li>
</ul>
<p>There is one administrative task I would highly recommend. When you create a new course you will have to administer that course independently of the site administration (In other words it has its own admin page). Within the course administration page you will want to take care of at least two things:</p>
<ul>
<li>Check the &#8220;Only course administrator can create projects&#8221; check box.</li>
<li>Under the Require Password dropdown select &#8220;To edit pages&#8221; otherwise any registered user can edit your course pages.</li>
</ul>
<p>And that&#8217;s pretty much it. The rest of the tool works like a standard Wiki page.</p>
<p><strong>Final Thoughts</strong></p>
<p>If you have been looking for a tool to allow students (of any type) to not only stay current in your classroom but also be able to interact, CourseForum might very well be the solution for you. I have deployed it for a few teachers who have been very pleased with the results. It&#8217;s remarkably seasy to install, simple to use, reliable, and it&#8217;s a fairly cheap solution ($119.00 USD).</p>

	Tags: <a href="http://www.ghacks.net/tag/apache/" title="apache" rel="tag">apache</a>, <a href="http://www.ghacks.net/tag/classroom/" title="classroom" rel="tag">classroom</a>, <a href="http://www.ghacks.net/tag/classroom-software/" title="classroom software" rel="tag">classroom software</a>, <a href="http://www.ghacks.net/tag/courseforum/" title="courseforum" rel="tag">courseforum</a>, <a href="http://www.ghacks.net/tag/courses/" title="courses" rel="tag">courses</a>, <a href="http://www.ghacks.net/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://www.ghacks.net/tag/wiki/" title="wiki" rel="tag">wiki</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/07/07/conduct-your-courses-on-line-with-atutor/" title="Conduct your courses on line with ATutor (July 7, 2009)">Conduct your courses on line with ATutor</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/03/17/adding-a-name-based-virtual-host-in-apache/" title="Adding a Name-Based Virtual Host in Apache (March 17, 2009)">Adding a Name-Based Virtual Host in Apache</a> (3)</li>
	<li><a href="http://www.ghacks.net/2008/02/07/yoggie-pico-personal-mobile-security-computer/" title="Yoggie PICO Personal Mobile Security Computer (February 7, 2008)">Yoggie PICO Personal Mobile Security Computer</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/10/30/with-ubuntu-9-10-arrives-wubi-9-10/" title="With Ubuntu 9.10 Arrives Wubi 9.10 (October 30, 2009)">With Ubuntu 9.10 Arrives Wubi 9.10</a> (2)</li>
	<li><a href="http://www.ghacks.net/2009/02/27/wikipedia-gets-books-and-gets-printed/" title="Wikipedia gets books and gets printed (February 27, 2009)">Wikipedia gets books and gets printed</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/03/23/create-interactive-classroom-pages-with-courseforum/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Adding a Name-Based Virtual Host in Apache</title>
		<link>http://www.ghacks.net/2009/03/17/adding-a-name-based-virtual-host-in-apache/</link>
		<comments>http://www.ghacks.net/2009/03/17/adding-a-name-based-virtual-host-in-apache/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 15:27:52 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[The Web]]></category>
		<category><![CDATA[Tutorials Advanced]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtual hosts]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=11288</guid>
		<description><![CDATA[If you are an Apache user for the hosting of either internal or external web sites then you know how flexible this web server can be. But did you know you can host more than one site on that server? You can thanks to Virtual sites. You can host virtual sites based on either IP [...]]]></description>
			<content:encoded><![CDATA[<p>If you are an Apache user for the hosting of either internal or external web sites then you know how flexible this web server can be. But did you know you can host more than one site on that server? You can thanks to Virtual sites. You can host virtual sites based on either IP address or Name. If IP addresses are in short supply the best choice, of course, is name-based virtual hosting.</p>
<p>In this article I will show you how to add name-based virtual hosts in your Apache web server. This will require you to edit the <strong>/etc/httpd/conf/httpd.conf</strong> file so be prepared for some command-line action. NOTE: This file can be located in various locations</p>
<p><span id="more-11288"></span></p>
<p>If you&#8217;ve never edited your <strong>httpd.conf</strong> file don&#8217;t worry, it&#8217;s not that difficult. Just make sure you use good comments so you know what you did and where you did it. Otherwise your virtual host section could get lost in the other sections.</p>
<p>The section of Apache where your virtual hosts will go is called, aptly, Virtual Hosts. The format of an entry looks like this:</p>
<p><code>&lt;VirtualHost *:80&gt;<br />
ServerAdmin admin@dummy-host.example.com<br />
DocumentRoot /www/docs/dummy-host.example.com<br />
ServerName dummy-host.example.com<br />
ErrorLog logs/dummy-host.example.com-error_log<br />
CustomLog logs/dummy-host.example.com-access_log common<br />
&lt;/VirtualHost&gt;</code></p>
<p>Before you actually start configuring your virtual host you need to make sure you have the NameVirtualHosts line uncommented out. The line will look like:</p>
<p>NameVirtualHosts *</p>
<p>You can find the line by using the <em>grep </em>command like so:</p>
<p><em>grep -n NameVirtualHosts /etc/httpd/conf/httpd.conf</em></p>
<p>(NOTE: Edit the path to your httpd.conf file to reflect your setup.)</p>
<p>The <em>grep</em> command will return to you which line the NameVirtualHost entry is on. Now open up the Nano editor and scroll down a bit. You can hit the key combination Ctrl-c to find out what line you are on. Once you find the line you will remove the &#8220;#&#8221; character (no quotes).</p>
<p>With that out of the way you are ready.</p>
<p>To illustrate how this is done I will show you how to create a virtual server for mail. The following assumes the doc root is <strong>/var/www/. </strong>Add the following entries to your <strong>httpd.conf</strong> file:</p>
<p><code>&lt;VirtualHost *:80&gt;<br />
<span class="indent"> DocumentRoot /www/yourcompany<br />
ServerName www.yourcompany.com<br />
# Other directives here<br />
</span>&lt;/VirtualHost&gt;</code></p>
<p><code>&lt;VirtualHost *:80&gt;<br />
<span class="indent"> DocumentRoot /www/mail<br />
ServerName mail.yourcompany.com<br />
# Other directives here<br />
</span>&lt;/VirtualHost&gt;</code></p>
<p>NOTE: Where <em>yourcompany.com</em> is the actual FQDN you use.</p>
<p>NOTE: If you need to change your port you can change it to suit your needs from the default port 80.</p>
<p>The above is the bare minimum configuration for your virtual servers. There are a LOT of possible directives you can use. For example, you might want to add error logging to these virtual hosts for debugging purposes. To add error logs to your virtual mail host? you would add the lines:</p>
<p><code>ErrorLog /var/log/httpd/mail-error_log common<br />
CustomLog /var/log/httpd/mail-access_log common</code></p>
<p>To your mail virtual host entry (above the &lt;/VirtualHost&gt; line.)</p>
<p>Once you have these entries complete you will need to save the <strong>httpd.conf</strong> file and restart Apache. To restart Apache issue one of the following commands:</p>
<p><em>/etc/rc.d/ini</em>t.d/httpd restart</p>
<p>or</p>
<p><em>/etc/init.d/apache2 restart</em></p>
<p>You&#8217;re done. You should now be able to hit the new virtual hosts.</p>
<p><strong>Final Thoughts</strong></p>
<p>Creating virtual hosts is a quick way to expand the capabilities of your Apache server, cut costs, and save IP addreses. Have you ever deployed virtual hosts with Apache? If so, share your experiences.</p>

	Tags: <a href="http://www.ghacks.net/tag/apache/" title="apache" rel="tag">apache</a>, <a href="http://www.ghacks.net/tag/fedora/" title="Fedora" rel="tag">Fedora</a>, <a href="http://www.ghacks.net/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://www.ghacks.net/tag/ubuntu/" title="ubuntu" rel="tag">ubuntu</a>, <a href="http://www.ghacks.net/tag/virtual-hosts/" title="virtual hosts" rel="tag">virtual hosts</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/02/18/get-to-know-linux-live-cd/" title="Get To Know Linux: Live CD (February 18, 2009)">Get To Know Linux: Live CD</a> (6)</li>
	<li><a href="http://www.ghacks.net/2009/10/30/with-ubuntu-9-10-arrives-wubi-9-10/" title="With Ubuntu 9.10 Arrives Wubi 9.10 (October 30, 2009)">With Ubuntu 9.10 Arrives Wubi 9.10</a> (2)</li>
	<li><a href="http://www.ghacks.net/2006/12/20/why-you-should-switch-your-parents-pc-to-ubuntu/" title="Why you should switch your parents pc to ubuntu (December 20, 2006)">Why you should switch your parents pc to ubuntu</a> (20)</li>
	<li><a href="http://www.ghacks.net/2009/04/02/which-ubuntu-derivative-is-right-for-you/" title="Which Ubuntu Derivative Is Right For You? (April 2, 2009)">Which Ubuntu Derivative Is Right For You?</a> (16)</li>
	<li><a href="http://www.ghacks.net/2009/10/06/what-makes-ubuntu-so-user-friendly/" title="What makes Ubuntu so user friendly? (October 6, 2009)">What makes Ubuntu so user friendly?</a> (47)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/03/17/adding-a-name-based-virtual-host-in-apache/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Portable Web Server</title>
		<link>http://www.ghacks.net/2008/12/28/portable-web-server/</link>
		<comments>http://www.ghacks.net/2008/12/28/portable-web-server/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 15:28:53 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[The Web]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache portable]]></category>
		<category><![CDATA[apache server]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[pearl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[portable web server]]></category>
		<category><![CDATA[server2go]]></category>
		<category><![CDATA[sqlite]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=9407</guid>
		<description><![CDATA[Server2Go is a portable web server that can be run from any storage space in a Windows environment. It can be placed on USB devices, removable devices, CDs, DVDs or the hard drive of the computer. It requires no installation at all and can be run right from the location where it has been placed [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.server2go-web.de/download/download.html">Server2Go</a> is a portable web server that can be run from any storage space in a Windows environment. It can be placed on USB devices, removable devices, CDs, DVDs or the hard drive of the computer. It requires no installation at all and can be run right from the location where it has been placed it.</p>
<p>The web server can be downloaded in various configurations. The various configurations range from a bare-bone Apache web server to a web server supporting MySQL, SQLite, Pearl and PHP. The configuration only has an effect on the type of applications that can be run on the web server. Most users will probably need at least MySQL and PHP support to run their websites locally.</p>
<p>The web server can be started by double-clicking on the Server2Go.exe executable file in the root directory of the server. This will load the various web server modules and display a start page in the web browser. The pms_config.ini file can be used to change various settings of the web server including the default web browser, the port and whether the modules like MySQL or PHP should be started as well.</p>
<p><span id="more-9407"></span><img src="http://www.ghacks.net/wp-content/uploads/2008/12/server2go-500x253.jpg" alt="server2go" title="server2go" width="500" height="253" class="alignnone size-medium wp-image-9408" /></p>
<p>The actual files of a website are placed in the htdocs directory of the web server. Loading them can be as easy as pointing your browser to 127.0.0.1:4001 or some subdirectory of it depending on the type of site.</p>
<p>MySQL comes with phpMyAdmin which is accessible from the main interface of the web server. Server2Go offers an uncomplicated way to run a web server, it is especially helpful in environments where software installations are restricted.</p>

	Tags: <a href="http://www.ghacks.net/tag/apache/" title="apache" rel="tag">apache</a>, <a href="http://www.ghacks.net/tag/apache-portable/" title="apache portable" rel="tag">apache portable</a>, <a href="http://www.ghacks.net/tag/apache-server/" title="apache server" rel="tag">apache server</a>, <a href="http://www.ghacks.net/tag/mysql/" title="mysql" rel="tag">mysql</a>, <a href="http://www.ghacks.net/tag/pearl/" title="pearl" rel="tag">pearl</a>, <a href="http://www.ghacks.net/tag/php/" title="php" rel="tag">php</a>, <a href="http://www.ghacks.net/tag/portable-web-server/" title="portable web server" rel="tag">portable web server</a>, <a href="http://www.ghacks.net/tag/server2go/" title="server2go" rel="tag">server2go</a>, <a href="http://www.ghacks.net/tag/sqlite/" title="sqlite" rel="tag">sqlite</a>, <a href="http://www.ghacks.net/tag/web-server/" title="web server" rel="tag">web server</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/09/17/local-apache-web-server-wampserver/" title="Local Apache Web Server Wampserver (September 17, 2009)">Local Apache Web Server Wampserver</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/07/23/how-to-install-a-lamp-server/" title="How to: Install a LAMP server (July 23, 2009)">How to: Install a LAMP server</a> (7)</li>
	<li><a href="http://www.ghacks.net/2007/01/31/host-your-own-webserver/" title="Host your own webserver (January 31, 2007)">Host your own webserver</a> (18)</li>
	<li><a href="http://www.ghacks.net/2009/01/02/web-development-standardizing-variables-to-code-faster/" title="Web Development: Standardizing variables to code faster (January 2, 2009)">Web Development: Standardizing variables to code faster</a> (18)</li>
	<li><a href="http://www.ghacks.net/2009/02/01/web-development-php-what-role-does-it-fill/" title="Web Development: PHP &#8211; what role does it fill (February 1, 2009)">Web Development: PHP &#8211; what role does it fill</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2008/12/28/portable-web-server/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Secure your server with htaccess</title>
		<link>http://www.ghacks.net/2008/03/31/secure-your-server-with-htaccess/</link>
		<comments>http://www.ghacks.net/2008/03/31/secure-your-server-with-htaccess/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 17:08:47 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[The Web]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[basic auth]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[htpasswd]]></category>
		<category><![CDATA[password protection]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[website security]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=3672</guid>
		<description><![CDATA[I apologize if this topic drifts a bit away from the usual ones you find here at ghacks but I thought it would be extremely useful for everyone who has a server or webspace that supports htaccess and htpasswd. Htaccess files can do much more than just secure a directory on your server or website but I want to concentrate on this topic because it is something that I have been using on some of my websites for a very long time to increase security.]]></description>
			<content:encoded><![CDATA[<p>I apologize if this topic drifts a bit away from the usual ones you find here at ghacks but I thought it would be extremely useful for everyone who has a server or webspace that supports htaccess and htpasswd. Htaccess files can do much more than just secure a directory on your server or website but I want to concentrate on this topic because it is something that I have been using on some of my websites for a very long time to increase security.</p>
<p>I use it mainly to secure certain directories on my websites from being accessed without the proper authorization. This is the admin directory in the case of Wordpress for instance but could also be used to secure a directory that hosts some valuable files.</p>
<p>I would like to point out two possibilities that secure a directory with .htacess. The first is to protect the directory by only allowing users with a certain IP or IP range access to it. Everyone else would receive an access denied error message.</p>
<p><span id="more-3672"></span>The second possibility would be to create usernames and passwords that have to be supplied before accessing the content.</p>
<p><strong>IP Protection:</strong></p>
<p>Create a .htaccess file and add the following code to it:</p>
<p><code>AuthName "Protected Content"<br />
AuthType Basic<br />
<Limit GET POST><br />
order deny,allow<br />
deny from all<br />
#Comment<br />
allow from 255.255.255.255<br />
</Limit></code></p>
<p>Change the IP address in the last line to the one used by the user / users. You can use wildcards * if the user is receiving dynamic IPs from his ISP. It is possible to add as many allow from lines to the .htaccess file as you want. Place that htaccess file in the directory that you want to protect. (all subdirectories are affected as well.</p>
<p>The problem with this kind of protection is twofold. If your IP changes, say you are on holiday or accessing from a different location, you need to add or change the IPs in the htaccess code. Users who happen to have a IP of that range can access the content without problems. This is usually a user from the same ISP. </p>
<p>A more secure protection is the basic auth protection.</p>
<p><strong>Password Protection:</strong></p>
<p>Whenever a user tries to access a directory or file a popup will appear asking the user for a username and password. This method requires two files, a htaccess file and a htpasswd file. The htpasswd file stores the usernames and encrypted passwords and should be placed outside of the root directory of the website.</p>
<p><code>AuthName "Restricted Area"<br />
AuthType Basic<br />
AuthUserFile /path/to/.htpasswd<br />
AuthGroupFile /dev/null<br />
require valid-user</code></p>
<p>Since the passwords are encrypted you need to use a script to do that. A working one is the <a href="http://home.flash.net/cgi-bin/pw.pl">htpasswd</a> Content Generator. Just enter a username and password and click on encrypt. Paste the line on the results page into the htpasswd file and place it exactly in the path that you specified in AuthUserFile.</p>
<p>It is possible to combine both protections for added security. I would begin by evaluating if your webhost is allowing those kind of files.</p>

	Tags: <a href="http://www.ghacks.net/tag/apache/" title="apache" rel="tag">apache</a>, <a href="http://www.ghacks.net/tag/basic-auth/" title="basic auth" rel="tag">basic auth</a>, <a href="http://www.ghacks.net/tag/htaccess/" title="htaccess" rel="tag">htaccess</a>, <a href="http://www.ghacks.net/tag/htpasswd/" title="htpasswd" rel="tag">htpasswd</a>, <a href="http://www.ghacks.net/tag/password-protection/" title="password protection" rel="tag">password protection</a>, <a href="http://www.ghacks.net/tag/security/" title="Security" rel="tag">Security</a>, <a href="http://www.ghacks.net/tag/website/" title="website" rel="tag">website</a>, <a href="http://www.ghacks.net/tag/website-security/" title="website security" rel="tag">website security</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/12/16/website-security-check/" title="Website Security Check (December 16, 2008)">Website Security Check</a> (4)</li>
	<li><a href="http://www.ghacks.net/2006/04/21/how-secure-is-my-banks-website/" title="How secure is my banks website ? (April 21, 2006)">How secure is my banks website ?</a> (1)</li>
	<li><a href="http://www.ghacks.net/2007/01/31/host-your-own-webserver/" title="Host your own webserver (January 31, 2007)">Host your own webserver</a> (18)</li>
	<li><a href="http://www.ghacks.net/2008/08/05/zoundry-raven-portable-blog-editor/" title="Zoundry Raven portable Blog Editor (August 5, 2008)">Zoundry Raven portable Blog Editor</a> (6)</li>
	<li><a href="http://www.ghacks.net/2008/05/07/yahoo-marks-dangerous-search-results/" title="Yahoo marks dangerous search results (May 7, 2008)">Yahoo marks dangerous search results</a> (4)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2008/03/31/secure-your-server-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install Wikipedia Locally</title>
		<link>http://www.ghacks.net/2008/01/06/install-wikipedia-locally/</link>
		<comments>http://www.ghacks.net/2008/01/06/install-wikipedia-locally/#comments</comments>
		<pubDate>Sun, 06 Jan 2008 15:18:20 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[encyclopedia]]></category>
		<category><![CDATA[wikipedia]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/2008/01/06/install-wikipedia-locally/</guid>
		<description><![CDATA[I theoretically mentioned the fact that it was possible, and in fact quite easy, to install Wikipedia locally which has several advantages but also one disadvantage. Advantages should be clear; You do not need a net connection to access the Wikipedia contents, you can distribute the solution to as many computers as you want and you can make it available in a local area network.]]></description>
			<content:encoded><![CDATA[<p>I theoretically mentioned the fact that it was possible, and in fact quite easy, to install Wikipedia locally which has several advantages but also one disadvantage. Advantages should be clear; You do not need a net connection to access the Wikipedia contents, you can distribute the solution to as many computers as you want and you can make it available in a local area network.</p>
<p>The only disadvantage that I can think of is that you will not use the latest version on their website and that you have to update the database to keep up to date. The English database file has a size of more than 3 Gigabytes &#8211; packed that is &#8211; and it can take some time to download it depending on your Internet connection. </p>
<p>I did use a download manager to make sure that the download does not get interrupted and I have to start over again. Here is the list of files that you do need, I walk you through the installation afterwards:</p>
<p><span id="more-2762"></span>
<ul>
<li><a href="http://download.wikimedia.org/enwiki/">Wikipedia Database Snapshot</a> &#8211; the file needed is currently called enwiki-latest-pages-articles.xml.bz2</li>
<li>An Apache server. I did use the free <a href="http://www.apachefriends.org/en/xampp-windows.html#641">XAMPP</a> to install it on my Windows system.</li>
<li><a href="http://wikifilter.sourceforge.net/">Wikifilter</a> &#8211; the script that makes Wikipedia available in the Apache server.</li>
</ul>
<p>I suggest you start by downloading the files needed. The Wikipedia database download will naturally take longer than the other two downloads which is excellent for our purpose. Once XAMPP has been downloaded install it. You are asked if you want to add services to your system during installation, this is not needed. Make sure you start the XAMPP control panel afterwards.</p>
<p><img src='http://www.ghacks.net/wp-content/uploads/2008/01/apache_server.jpg' alt='apache server' /></p>
<p>Keep this open and wait for the downloads to finish. Now unpack the file that contains the Wikipedia articles and wait for it to finish. The unpacked file has a size of more than 13 Gigabytes so make sure you have enough free hard drive space on that drive.<br />
Now add the date of the release in the format YYYYMMDD to the file name. I added it at the end before the .xml.</p>
<p><img src='http://www.ghacks.net/wp-content/uploads/2008/01/wikiindex.jpg' alt='wiki index' /></p>
<p>Now run WikiIndex.exe and drag and drop the XML file in the program window. It starts indexing the database file which should take a while as well (5 minutes on my system). We are almost done now.</p>
<p>You need to locate the httpd.conf file in the XAMPP directory and add an entry to it. The file is located in xampp\apache\conf. Just open it with a normal text editor and add the following line at the end:</p>
<p><em>LoadModule WikiFilter_module &#8220;C:/Program Files/WikiFilter/WikiFilter.so&#8221;</em></p>
<p>Please replace the path to the WikiFilter.so file with the path on your system. You should also note that the file path uses &#8220;/&#8221; instead of the usual &#8220;\&#8221; to separate directories.</p>
<p>Start Apache using the XAMPP control panel and point your browser to the url <em>http://localhost/wiki/</em>.</p>

	Tags: <a href="http://www.ghacks.net/tag/apache/" title="apache" rel="tag">apache</a>, <a href="http://www.ghacks.net/tag/database/" title="database" rel="tag">database</a>, <a href="http://www.ghacks.net/tag/encyclopedia/" title="encyclopedia" rel="tag">encyclopedia</a>, <a href="http://www.ghacks.net/tag/wikipedia/" title="wikipedia" rel="tag">wikipedia</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/08/04/wikitaxi-takes-wikipedia-offline/" title="WikiTaxi Takes Wikipedia Offline (August 4, 2008)">WikiTaxi Takes Wikipedia Offline</a> (7)</li>
	<li><a href="http://www.ghacks.net/2009/01/12/visual-wikipedia/" title="Visual Wikipedia (January 12, 2009)">Visual Wikipedia</a> (3)</li>
	<li><a href="http://www.ghacks.net/2008/01/05/schools-wikipedia-cd-and-dvd-image/" title="Schools Wikipedia CD and DVD image (January 5, 2008)">Schools Wikipedia CD and DVD image</a> (1)</li>
	<li><a href="http://www.ghacks.net/2009/06/11/read-deleted-wikipedia-pages-on-deletionpedia/" title="Read Deleted Wikipedia Pages On Deletionpedia (June 11, 2009)">Read Deleted Wikipedia Pages On Deletionpedia</a> (2)</li>
	<li><a href="http://www.ghacks.net/2009/08/22/download-wikipedia-with-okawix-to-access-the-data-locally/" title="Download Wikipedia With Okawix To Access The Data Locally (August 22, 2009)">Download Wikipedia With Okawix To Access The Data Locally</a> (11)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2008/01/06/install-wikipedia-locally/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Host your own webserver</title>
		<link>http://www.ghacks.net/2007/01/31/host-your-own-webserver/</link>
		<comments>http://www.ghacks.net/2007/01/31/host-your-own-webserver/#comments</comments>
		<pubDate>Wed, 31 Jan 2007 21:03:31 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Knowledge]]></category>
		<category><![CDATA[The Web]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[web server]]></category>
		<category><![CDATA[webserver]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/2007/01/31/host-your-own-webserver/</guid>
		<description><![CDATA[It is relatively easy to use your home computer running Windows to become a webserver that is accessible from anywhere. The following method is highly flexible and makes it possible to host websites, documents and files on that server and protect the contents with passwords if so desired. All you need is a software called XAMP which installs the Apache server environment on your computer.]]></description>
			<content:encoded><![CDATA[<p>It is relatively easy to use your home computer running Windows to become a webserver that is accessible from anywhere. The following method is highly flexible and makes it possible to host websites, documents and files on that server and protect the contents with passwords if so desired. All you need is a software called <a href="http://www.apachefriends.org/de/index.html" title="xampp" target="_blank">XAMPP</a> which installs the Apache server environment on your computer.</p>
<p>Download <a href="http://www.apachefriends.org/de/xampp-windows.html" title="xampp for windows" target="_blank">Xampp for Windows</a> and install it on your system. It does not matter if you install the modules as services, you can activate them as well by opening the control panel. (start apache) Once installed the webserver should be accessible by typing in <a href="http://localhost" class="linkification-ext" title="Linkification: http://localhost">http://localhost</a> or http://yourdynamicip; You can look up your dynamic ip using my <a href="http://www.ghacks.net/ip" title="ip lookup" target="_blank">ip lookup script</a>. Hosting files is as easy, just upload all the files that you want to share into the subfolder htdocs or create a subfolder and add the files to it.</p>
<p><span id="more-1157"></span> Access the subfolder by appending /subfolder/ to the url that you want to access. You can add html and php files as well and those can be accessed as well similar to those files on other websites. It is easy to secure folders or the complete server using so called .htaccess files. Use the <a href="http://tools.dynamicdrive.com/password/" title="htaccess generator" target="_blank">htaccess generator</a> and add the generated files to your directories that you want to protect.</p>
<p>There is one last thing that can be optimized. It is difficulty for others to access your webserver if you have dynamic IPs. To counter this you could use a free service like <a href="https://www.dyndns.com/" title="dyndns" target="_blank">DynDNS</a> which adds a static dns to your IP. Friends and everyone else who should access the webserver can then use the dynamic dns which looks something like subdomain.dyndns.bz instead of the dynamic IP address.</p>

	Tags: <a href="http://www.ghacks.net/tag/apache/" title="apache" rel="tag">apache</a>, <a href="http://www.ghacks.net/tag/php/" title="php" rel="tag">php</a>, <a href="http://www.ghacks.net/tag/server/" title="server" rel="tag">server</a>, <a href="http://www.ghacks.net/tag/web-server/" title="web server" rel="tag">web server</a>, <a href="http://www.ghacks.net/tag/webserver/" title="webserver" rel="tag">webserver</a>, <a href="http://www.ghacks.net/tag/website/" title="website" rel="tag">website</a>, <a href="http://www.ghacks.net/tag/xampp/" title="xampp" rel="tag">xampp</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/03/28/home-web-server/" title="Run Your Own Home Web Server (March 28, 2009)">Run Your Own Home Web Server</a> (7)</li>
	<li><a href="http://www.ghacks.net/2008/12/28/portable-web-server/" title="Portable Web Server (December 28, 2008)">Portable Web Server</a> (8)</li>
	<li><a href="http://www.ghacks.net/2009/09/17/local-apache-web-server-wampserver/" title="Local Apache Web Server Wampserver (September 17, 2009)">Local Apache Web Server Wampserver</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/06/12/what-you-really-need-to-know-about-choosing-a-web-host/" title="What you Really Need to Know about Choosing a Web Host (June 12, 2009)">What you Really Need to Know about Choosing a Web Host</a> (10)</li>
	<li><a href="http://www.ghacks.net/2009/07/23/web-server-migration-today/" title="Web Server Migration Today (July 23, 2009)">Web Server Migration Today</a> (5)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2007/01/31/host-your-own-webserver/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Unsuggester and some Apache .htaccess tips</title>
		<link>http://www.ghacks.net/2006/12/05/unsuggester-and-some-apache-htacces-tips/</link>
		<comments>http://www.ghacks.net/2006/12/05/unsuggester-and-some-apache-htacces-tips/#comments</comments>
		<pubDate>Tue, 05 Dec 2006 01:39:56 +0000</pubDate>
		<dc:creator>Dearon</dc:creator>
				<category><![CDATA[Browsing]]></category>
		<category><![CDATA[Funny]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[bad-suggestions]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[htacces]]></category>
		<category><![CDATA[library]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/2006/12/05/unsuggester-and-some-apache-htacces-tips/</guid>
		<description><![CDATA[If you read allot of books, it's always nice to know if there are others books that you might like based on a list of books you like.
Well Unsuggester is kinda like that, but then the other way around.
You type in a title of a book you like, and the site servers you a list of books you will probably not like.
It is not very useful, but who knows maybe you'll find a nice book even though the system says you will probably not like it.]]></description>
			<content:encoded><![CDATA[<p>If you read a lot of books, it&#8217;s always nice to know if there are others books that you might like based on a list of books you like. Well <a title="Unsuggester homepage" href="http://www.librarything.com/unsuggester">Unsuggester</a> is kinda like that, but then the other way around. You type in a title of a book you like, and the site servers you a list of books you will probably not like. It is not very useful, but who knows maybe you&#8217;ll find a nice book even though the system says you will probably not like it.</p>
<p>Now i don&#8217;t know how many readers work with websites, but maybe some of you can use <a title="Speed up sites with htaccess caching" href="http://www.askapache.com/2006/htaccess/speed-up-sites-with-htaccess-caching.html">this link</a>. It&#8217;s an article on how to speed up sites using .htaccess file. It is quite a read but it looks promising, and the comment discussion there can also prove to be quite useful.</p>
<p><span id="more-974"></span></p>

	Tags: <a href="http://www.ghacks.net/tag/apache/" title="apache" rel="tag">apache</a>, <a href="http://www.ghacks.net/tag/bad-suggestions/" title="bad-suggestions" rel="tag">bad-suggestions</a>, <a href="http://www.ghacks.net/tag/books/" title="books" rel="tag">books</a>, <a href="http://www.ghacks.net/tag/htacces/" title="htacces" rel="tag">htacces</a>, <a href="http://www.ghacks.net/tag/library/" title="library" rel="tag">library</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/04/19/catalogue-your-dvds-games-and-book/" title="Catalogue your DVDs, games and book (April 19, 2009)">Catalogue your DVDs, games and book</a> (5)</li>
	<li><a href="http://www.ghacks.net/2009/02/27/wikipedia-gets-books-and-gets-printed/" title="Wikipedia gets books and gets printed (February 27, 2009)">Wikipedia gets books and gets printed</a> (2)</li>
	<li><a href="http://www.ghacks.net/2008/09/26/use-worldcat-to-search-libraries-worldwide/" title="Use Worldcat to Search Libraries Worldwide (September 26, 2008)">Use Worldcat to Search Libraries Worldwide</a> (1)</li>
	<li><a href="http://www.ghacks.net/2009/05/04/self-publish-for-free-with-lulu/" title="Self-publish for free with Lulu (May 4, 2009)">Self-publish for free with Lulu</a> (4)</li>
	<li><a href="http://www.ghacks.net/2008/03/31/secure-your-server-with-htaccess/" title="Secure your server with htaccess (March 31, 2008)">Secure your server with htaccess</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2006/12/05/unsuggester-and-some-apache-htacces-tips/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
