<?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>My Web Experiences &#187; Apache</title>
	<atom:link href="http://www.mywebexperiences.com/category/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mywebexperiences.com</link>
	<description>A web development blog</description>
	<lastBuildDate>Thu, 05 Jan 2012 14:56:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Protect web pages with username/password</title>
		<link>http://www.mywebexperiences.com/2008/09/29/protect-web-pages-with-usernamepassword/</link>
		<comments>http://www.mywebexperiences.com/2008/09/29/protect-web-pages-with-usernamepassword/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 00:59:37 +0000</pubDate>
		<dc:creator>Rene</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.mywebexperiences.com/?p=56</guid>
		<description><![CDATA[If there some web pages you want to protect with username/password, all you have to do is to create a file called .htaccess under the directory to protect with the following lines: &#160; AuthUserFile /path/to/htpasswd/.htpasswd AuthGroupFile /dev/null AuthName &#34;Restricted Directory&#34; AuthType Basic &#160; &#60;Limit GET POST&#62; require valid-user &#60;/Limit&#62; &#160; Replace /path/to/htpasswd/ with the .htpasswd [...]]]></description>
			<content:encoded><![CDATA[<p>
If there some web pages you want to protect with username/password, all you have to do is to create a file called <strong>.htaccess</strong> under the directory to protect with the following lines:
</p>

<div class="dean_ch" style="white-space: nowrap;"><ol><li class="li1"><div class="de1">&nbsp;</div></li>
<li class="li1"><div class="de1">AuthUserFile /path/to/htpasswd/.htpasswd</div></li>
<li class="li1"><div class="de1">AuthGroupFile /dev/null</div></li>
<li class="li1"><div class="de1">AuthName &quot;Restricted Directory&quot;</div></li>
<li class="li2"><div class="de2">AuthType Basic</div></li>
<li class="li1"><div class="de1">&nbsp;</div></li>
<li class="li1"><div class="de1">&lt;Limit GET POST&gt;</div></li>
<li class="li1"><div class="de1">require valid-user</div></li>
<li class="li1"><div class="de1">&lt;/Limit&gt;</div></li>
<li class="li2"><div class="de2">&nbsp;</div></li></ol></div>
<p>
</p>
Replace <strong>/path/to/htpasswd/</strong> with the <strong>.htpasswd</strong> path.<br />
Replace <strong>Restricted Directory</strong> with the text you want as title of the prompt window.
<p>
Then you have to create the <strong>.htpasswd</strong> file using the following command:
</p>
<blockquote>
<strong>htpasswd -c .htpasswd user_name</strong>
</blockquote>
<p>
Execute it under the directory to protect or add the full path to <strong>.httpasswd</strong> and replace <strong>user_name</strong> by the username you want to use, you will be asked to enter the password and the file will be created.
</p>
<p>
<strong>Notes:</strong> This instruction are for linux/unix systems using apache web server, the dot means hidden files on linux.
</p>]]></content:encoded>
			<wfw:commentRss>http://www.mywebexperiences.com/2008/09/29/protect-web-pages-with-usernamepassword/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configure Apache to serve PERL pages ( Ubuntu )</title>
		<link>http://www.mywebexperiences.com/2008/05/30/configure-apache-to-serve-perl-pages-ubuntu/</link>
		<comments>http://www.mywebexperiences.com/2008/05/30/configure-apache-to-serve-perl-pages-ubuntu/#comments</comments>
		<pubDate>Fri, 30 May 2008 23:59:17 +0000</pubDate>
		<dc:creator>Rene</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PERL]]></category>

		<guid isPermaLink="false">http://www.mywebexperiences.com/?p=33</guid>
		<description><![CDATA[I just reinstalled my ubuntu distribution, and have to configure apache to serve perl pages outside of the cgi-bin directory, after a little bit of googling i found the solution. You have to edit the /etc/apache2/apache2.conf and add to it the following lines. &#160; AddHandler cgi-script .cgi .pl &#60;Files ~ &#34;\.pl$&#34;&#62; Options +ExecCGI &#60;/Files&#62; &#60;Files [...]]]></description>
			<content:encoded><![CDATA[<p>
I just reinstalled my ubuntu distribution, and have to configure apache to serve perl pages outside of the cgi-bin directory, after a little bit of  googling i found the solution.
</p>
<p>
You have to edit the <strong>/etc/apache2/apache2.conf</strong>  and add to it the following lines.
</p>
<div class="dean_ch" style="white-space: nowrap;"><ol><li class="li1"><div class="de1">&nbsp;</div></li>
<li class="li1"><div class="de1">AddHandler cgi-script .cgi .pl</div></li>
<li class="li1"><div class="de1">&lt;Files ~ &quot;\.pl$&quot;&gt;</div></li>
<li class="li1"><div class="de1">Options +ExecCGI</div></li>
<li class="li2"><div class="de2">&lt;/Files&gt;</div></li>
<li class="li1"><div class="de1">&lt;Files ~ &quot;\.cgi$&quot;&gt;</div></li>
<li class="li1"><div class="de1">Options +ExecCGI</div></li>
<li class="li1"><div class="de1">&lt;/Files&gt;</div></li>
<li class="li1"><div class="de1">&nbsp;</div></li></ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.mywebexperiences.com/2008/05/30/configure-apache-to-serve-perl-pages-ubuntu/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Stop apache showing incomplete urls</title>
		<link>http://www.mywebexperiences.com/2008/05/22/stop-apache-showing-incomplete-urls/</link>
		<comments>http://www.mywebexperiences.com/2008/05/22/stop-apache-showing-incomplete-urls/#comments</comments>
		<pubDate>Fri, 23 May 2008 03:51:20 +0000</pubDate>
		<dc:creator>Rene</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://www.mywebexperiences.com/?p=32</guid>
		<description><![CDATA[Apache was showing files even if i didn&#8217;t put the extension on the url, that behavior was messing with a mod rewrite rule i was working on. To solve this we just add the line below to the .htaccess file and that&#8217;s it apache will stop showing incomplete urls Options -MultiViews &#160;]]></description>
			<content:encoded><![CDATA[<p>
Apache was showing files even if i didn&#8217;t put the extension on the url, that behavior was messing with a mod rewrite rule i was working on. To solve this we just add the line below to the <strong>.htaccess</strong>  file and that&#8217;s it apache will stop showing incomplete urls
</p>
<div class="dean_ch" style="white-space: nowrap;"><ol><li class="li1"><div class="de1">Options -MultiViews</div></li>
<li class="li1"><div class="de1">&nbsp;</div></li></ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.mywebexperiences.com/2008/05/22/stop-apache-showing-incomplete-urls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force download in apache</title>
		<link>http://www.mywebexperiences.com/2008/02/27/force-download-in-apache/</link>
		<comments>http://www.mywebexperiences.com/2008/02/27/force-download-in-apache/#comments</comments>
		<pubDate>Wed, 27 Feb 2008 05:31:04 +0000</pubDate>
		<dc:creator>Rene</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.mywebexperiences.com/2008/02/27/force-download-in-apache/</guid>
		<description><![CDATA[if you want to force certain kind of files to pop up the save as dialog box, you have to add the AddType directive with the value application/octet-stream to the .htaccess file like this: &#160; AddType application/octet-stream .csv AddType application/octet-stream .xls AddType application/octet-stream .doc AddType application/octet-stream .avi AddType application/octet-stream .mpg AddType application/octet-stream .mov AddType application/octet-stream [...]]]></description>
			<content:encoded><![CDATA[<p>
if you want to force certain kind of files to pop up the save as dialog box, you have to add the AddType directive with the value application/octet-stream to the .htaccess file like this:
</p>
<div class="dean_ch" style="white-space: nowrap;"><ol><li class="li1"><div class="de1">&nbsp;</div></li>
<li class="li1"><div class="de1">AddType application/octet-stream .csv</div></li>
<li class="li1"><div class="de1">AddType application/octet-stream .xls</div></li>
<li class="li1"><div class="de1">AddType application/octet-stream .doc</div></li>
<li class="li2"><div class="de2">AddType application/octet-stream .avi </div></li>
<li class="li1"><div class="de1">AddType application/octet-stream .mpg</div></li>
<li class="li1"><div class="de1">AddType application/octet-stream .mov</div></li>
<li class="li1"><div class="de1">AddType application/octet-stream .pdf</div></li>
<li class="li1"><div class="de1">&nbsp;</div></li></ol></div>
<p>and that&#8217;s all, now everything works fine</p>]]></content:encoded>
			<wfw:commentRss>http://www.mywebexperiences.com/2008/02/27/force-download-in-apache/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Configure ubuntu to use mod_rewrite</title>
		<link>http://www.mywebexperiences.com/2008/02/12/configure-ubuntu-to-use-mod_rewrite/</link>
		<comments>http://www.mywebexperiences.com/2008/02/12/configure-ubuntu-to-use-mod_rewrite/#comments</comments>
		<pubDate>Wed, 13 Feb 2008 04:58:40 +0000</pubDate>
		<dc:creator>Rene</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.mywebexperiences.com/2008/02/12/configure-ubuntu-to-use-mod_rewrite/</guid>
		<description><![CDATA[To enable mod_rewrite on Ubuntu is pretty easy what we have to do is, first we enable the apache module for mod rewrite with this line. &#160; sudo a2enmod rewrite &#160; After that we have to edit the file /etc/apache2/sites-avalible/default, then we look for this: &#160; &#60;Directory /var/www/&#62; &#160; &#160; Options Indexes FollowSymLinks MultiViews &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>
To enable mod_rewrite on Ubuntu is pretty easy what we have to do is, first we enable the apache module for mod rewrite with this line.
</p>
<div class="dean_ch" style="white-space: nowrap;"><ol><li class="li1"><div class="de1">&nbsp;</div></li>
<li class="li1"><div class="de1">sudo a2enmod rewrite</div></li>
<li class="li1"><div class="de1">&nbsp;</div></li></ol></div>
<p>
After that we have to edit the file /etc/apache2/sites-avalible/default, then we look for this:
</p>
<div class="dean_ch" style="white-space: nowrap;"><ol><li class="li1"><div class="de1">&nbsp;</div></li>
<li class="li1"><div class="de1">&lt;Directory /var/www/&gt;</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; Options Indexes FollowSymLinks MultiViews</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; AllowOverride None</div></li>
<li class="li2"><div class="de2">&nbsp; &nbsp; Order allow,deny</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; allow from all</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; # This directive allows us to have apache2&#8242;s default start page</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; # in /apache2-default/, but still have / go to the right place</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; #RedirectMatch ^/$ /apache2-default/</div></li>
<li class="li2"><div class="de2">&lt;/Directory&gt;</div></li>
<li class="li1"><div class="de1">&nbsp;</div></li></ol></div>
<p>
And then we replace &#8220;AllowOverride None&#8221; by &#8220;AllowOverride All&#8221;, this line tells apache  to read the .htaccess file, that is the file where we will put our rewrite rules.
</p>
<div class="dean_ch" style="white-space: nowrap;"><ol><li class="li1"><div class="de1">&nbsp;</div></li>
<li class="li1"><div class="de1">&lt;Directory /var/www/&gt;</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; Options Indexes FollowSymLinks MultiViews</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; AllowOverride All</div></li>
<li class="li2"><div class="de2">&nbsp; &nbsp; Order allow,deny</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; allow from all</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; # This directive allows us to have apache2&#8242;s default start page</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; # in /apache2-default/, but still have / go to the right place</div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; #RedirectMatch ^/$ /apache2-default/</div></li>
<li class="li2"><div class="de2">&lt;/Directory&gt;</div></li>
<li class="li1"><div class="de1">&nbsp;</div></li></ol></div>
<p>
finally we just reload  apache
</p>
<div class="dean_ch" style="white-space: nowrap;"><ol><li class="li1"><div class="de1">&nbsp;</div></li>
<li class="li1"><div class="de1">sudo /etc/init.d/apache2 restart</div></li>
<li class="li1"><div class="de1">&nbsp;</div></li></ol></div>
<p>
now we have pretty urls for our sites. :)
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywebexperiences.com/2008/02/12/configure-ubuntu-to-use-mod_rewrite/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

