<?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>World On A Shoe String &#187; apache web server</title>
	<atom:link href="http://blog.name1price.com/tags/apache-web-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.name1price.com</link>
	<description>Days of my adventures on Earth</description>
	<lastBuildDate>Mon, 26 Dec 2011 09:18:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Making mod_rewrite work for Apache server on Windows XP</title>
		<link>http://blog.name1price.com/2010/02/making-mod_rewrite-work-for-apache-server-on-windows-xp/</link>
		<comments>http://blog.name1price.com/2010/02/making-mod_rewrite-work-for-apache-server-on-windows-xp/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 17:25:28 +0000</pubDate>
		<dc:creator>Gary Teh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache web server]]></category>
		<category><![CDATA[free open source systems]]></category>
		<category><![CDATA[Software configurations]]></category>
		<category><![CDATA[web 2.0]]></category>

		<guid isPermaLink="false">http://blog.name1price.com/?p=339</guid>
		<description><![CDATA[Last year I set up an Apache 2.2 server on my computer to do some developement work using EzPublish in multiple virtual host environment. One day, I happened to raise a question to Steven on how to get it configured so that mod_rewrite works on my server and I could debug my script locally instead [...]]]></description>
			<content:encoded><![CDATA[<p>Last year I set up an Apache 2.2 server on my computer to do some developement work using EzPublish in multiple virtual host environment. One day, I happened to raise a question to Steven on how to get it configured so that mod_rewrite works on my server and I could debug my script locally instead of always having to test it on some remote server. I got the response from him that it does not work in Windows environment. Due to the fact that this particular feature was not critical to the whole operation, I left it as that.</p>
<p>Two days ago out of curiosity, I downloaded this new PHP social networking software called ElGG . Apparently it uses mod_rewrite extensively and provides no other alternative methods to access its function. I was thus forced into a corner. Hence I did what I did. I went to google.com and started researching. Interestingly, I read that some actually got mod_rewrite working on Apache server running on Windows XP.</p>
<p>I spent the next two days researching on the Apache architecture. The result I got was this assuming you already have multiple virtual host setup:</p>
<ol>
<li>uncomment <strong>LoadModule rewrite_module modules/mod_rewrite.so </strong>in your <strong>httpd.conf </strong>file</li>
<li>add the following lines to your <strong>vhost.conf </strong>files
<p>&lt;Directory &#8220;&#8230;&#8221;&gt;<br />
<em> #Tells your Apache webserver to detect for the .htaccess file in your directory</em><br />
AllowOverride All<br />
&lt;/Directory&gt;</li>
<li>The below was copied lock stock and barrel from Joomla. Copy and paste it into a .htaccess file on your webserver and place it at the root location
<p>##<br />
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $<br />
# @package Joomla<br />
# @copyright Copyright (C) 2005 &#8211; 2008 Open Source Matters. All rights reserved.<br />
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL<br />
# Joomla! is Free Software<br />
##</p>
<p>#####################################################<br />
#  READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE<br />
#<br />
# The line just below this section: &#8216;Options +FollowSymLinks&#8217; may cause problems<br />
# with some server configurations.  It is required for use of mod_rewrite, but may already<br />
# be set by your server administrator in a way that dissallows changing it in<br />
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to<br />
# beginning of line), reload your site in your browser and test your sef url&#8217;s.  If they work,<br />
# it has been set by your server administrator and you do not need it set here.<br />
#<br />
#####################################################</p>
<p>##  Can be commented out if causes errors, see notes above.<br />
Options +FollowSymLinks</p>
<p>#<br />
#  mod_rewrite in use</p>
<p>RewriteEngine On</p>
<p>########## Begin &#8211; Rewrite rules to block out some common exploits<br />
## If you experience problems on your site block out the operations listed below<br />
## This attempts to block the most common type of exploit `attempts` to Joomla!<br />
#<br />
# Block out any script trying to set a mosConfig value through the URL<br />
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]<br />
# Block out any script trying to base64_encode crap to send via URL<br />
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]<br />
# Block out any script that includes a &lt;script&gt; tag in URL<br />
RewriteCond %{QUERY_STRING} (\&lt;|%3C).*script.*(\&gt;|%3E) [NC,OR]<br />
# Block out any script trying to set a PHP GLOBALS variable via URL<br />
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]<br />
# Block out any script trying to modify a _REQUEST variable via URL<br />
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})<br />
# Send all blocked request to homepage with 403 Forbidden error!<br />
RewriteRule ^(.*)$ index.php [F,L]<br />
#<br />
########## End &#8211; Rewrite rules to block out some common exploits</p>
<p>#  Uncomment following line if your webserver&#8217;s URL<br />
#  is not directly related to physical file paths.<br />
#  Update Your Joomla! Directory (just / for root)</p>
<p># RewriteBase /</p>
<p>########## Begin &#8211; Joomla! core SEF Section<br />
#<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteCond %{REQUEST_URI} !^/index.php<br />
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]<br />
RewriteRule (.*) index.php<br />
RewriteRule .* &#8211; [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]<br />
#<br />
########## End &#8211; Joomla! core SEF Section</li>
</ol>
<p>If you are still having problems after all these steps <a href="http://name1price.com/index.php/contact-us.html">contact me</a>. I will help set it up for your nicely. <img src='http://blog.name1price.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.name1price.com/2010/02/making-mod_rewrite-work-for-apache-server-on-windows-xp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

