<?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>Web Surf Shack &#187; apache</title>
	<atom:link href="http://www.websurfshack.net/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.websurfshack.net</link>
	<description>Waxing your internet surf board</description>
	<lastBuildDate>Wed, 21 Apr 2010 07:58:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Apache Directory Access Control</title>
		<link>http://www.websurfshack.net/2009/10/apache-directory-access-control/</link>
		<comments>http://www.websurfshack.net/2009/10/apache-directory-access-control/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 16:54:34 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.websurfshack.net/2009/10/apache-directory-access-control/</guid>
		<description><![CDATA[Apache configuration has a Directory directive. It is used like a .htaccess file to control access to said directory.
An example:

	Order deny,allow
	Deny from all
	Allow from my.domain.com

The important bit here is the Order statement. Rules will be processed from right to left (in this case all of the deny rules then all of the allow rules. The [...]]]></description>
		<wfw:commentRss>http://www.websurfshack.net/2009/10/apache-directory-access-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ModRewrite: File existance check</title>
		<link>http://www.websurfshack.net/2009/07/modrewrite-file-existance-check/</link>
		<comments>http://www.websurfshack.net/2009/07/modrewrite-file-existance-check/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 14:35:24 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Useful tidbits]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[rewritecond]]></category>
		<category><![CDATA[rewriterule]]></category>

		<guid isPermaLink="false">http://www.websurfshack.net/?p=314</guid>
		<description><![CDATA[We have written about mod_rewrite before, but did you know that you can check if a file (or directory) exists before you attempt to redirect to it? Here&#8217;s how:
RewriteCond %{DOCUMENT_ROOT}/files/%{REQUEST_URI} -f
RewriteRule ^/([^/]*)$ /files/$1 [PT]
The RewriteCond checks for the existance of a file in the specified path, this is done with the special mod_rewrite rule -f. [...]]]></description>
		<wfw:commentRss>http://www.websurfshack.net/2009/07/modrewrite-file-existance-check/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rewriting the Query String</title>
		<link>http://www.websurfshack.net/2009/04/rewriting-the-query-string/</link>
		<comments>http://www.websurfshack.net/2009/04/rewriting-the-query-string/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 13:30:11 +0000</pubDate>
		<dc:creator>james</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[rewritecond]]></category>
		<category><![CDATA[rewriterule]]></category>

		<guid isPermaLink="false">http://www.websurfshack.net/?p=278</guid>
		<description><![CDATA[Sometimes you want to redirect the user to a new page based on a specific query string value. Heres Â how to do that:

RewriteCond %{QUERY_STRING} foo=bar&#038;bim=bam
RewriteRule ^horrible.php$ /farbetter.html? [R=302]

This redirects all traffic going to &#8220;horrible.php?foo=bar&#038;bim=bam&#8221; to goto &#8220;farbetter.html&#8221;. Note that for all other querystring vars horrible.php is still available.
]]></description>
		<wfw:commentRss>http://www.websurfshack.net/2009/04/rewriting-the-query-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Managing multiple domain names</title>
		<link>http://www.websurfshack.net/2009/02/managing-multiple-domain-names/</link>
		<comments>http://www.websurfshack.net/2009/02/managing-multiple-domain-names/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 11:18:14 +0000</pubDate>
		<dc:creator>james</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[domain name]]></category>
		<category><![CDATA[rewritecond]]></category>
		<category><![CDATA[rewriterule]]></category>

		<guid isPermaLink="false">http://www.websurfshack.net/?p=183</guid>
		<description><![CDATA[Multiple domains pointing to a single site? Want to divert the traffic based on domain name? Then this is the simple two liner to do it without faffing with virtualhosts.

RewriteCond %{HTTP_HOST} ^(www\.)?mywebsite.com$
RewriteRule Â  Â ^/$ Â /mywebsite.html [L]
 
RewriteCond %{HTTP_HOST} ^(www\.)?myotherwebsite.com$
RewriteRule    ^/$  /myotherwebsite.html [L]
]]></description>
		<wfw:commentRss>http://www.websurfshack.net/2009/02/managing-multiple-domain-names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cookies with apache</title>
		<link>http://www.websurfshack.net/2009/02/cookies-with-apache/</link>
		<comments>http://www.websurfshack.net/2009/02/cookies-with-apache/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 09:26:12 +0000</pubDate>
		<dc:creator>james</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[cookie]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.websurfshack.net/?p=159</guid>
		<description><![CDATA[Â 

I recently had the need to setup part of a website so that the user needed to agree to terms before accessing. I was not happy about having to make the pages dynamic or use javascript. So instead, this rather elegant apache solution does the job.
Â 
This example is based on a three page system, obviously [...]]]></description>
		<wfw:commentRss>http://www.websurfshack.net/2009/02/cookies-with-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache error codes</title>
		<link>http://www.websurfshack.net/2009/01/apache-error-codes/</link>
		<comments>http://www.websurfshack.net/2009/01/apache-error-codes/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 15:47:19 +0000</pubDate>
		<dc:creator>james</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[cheatsheet]]></category>

		<guid isPermaLink="false">http://www.websurfshack.net/?p=148</guid>
		<description><![CDATA[Always handy, a list of Apache error codes.
Or why not read the RFC2616



Successful Client Requests


200
OK


201
Created


202
Accepted


203
Non-Authorative Information


204
No Content


205
Reset Content


206
Partial Content


Client Request Redirected


300
Multiple Choices


301
Moved Permanently


302
Moved Temporarily


303
See Other


304
Not Modified


305
Use Proxy


Client Request Errors


400
Bad Request


401
Authorization Required


402
Payment Required (not used yet)


403
Forbidden


404
Not Found


405
Method Not Allowed


406
Not Acceptable (encoding)


407
Proxy Authentication Required



408
Request Timed Out


409
Conflicting Request


410
Gone


411
Content Length Required


412
Precondition Failed


413
Request Entity Too Long


414
Request URI Too Long


415
Unsupported Media [...]]]></description>
		<wfw:commentRss>http://www.websurfshack.net/2009/01/apache-error-codes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache configuration tricks</title>
		<link>http://www.websurfshack.net/2008/11/apache-configuration-tricks/</link>
		<comments>http://www.websurfshack.net/2008/11/apache-configuration-tricks/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 21:58:45 +0000</pubDate>
		<dc:creator>james</dc:creator>
				<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[cheatsheet]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://www.websurfshack.net/?p=48</guid>
		<description><![CDATA[This site is a good start point for a number of useful apache configuration (htaccess) tips and tricks.
http://www.askapache.com/htaccess/apache-htaccess.html
A more structured but basic cheat sheet can be found here:
mod_rewrite Cheatsheet/
Another collection of tips:
http://www.thejackol.com/htaccess-cheatsheet/
]]></description>
		<wfw:commentRss>http://www.websurfshack.net/2008/11/apache-configuration-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Doodlebugged</title>
		<link>http://www.websurfshack.net/2008/10/doodlebugged/</link>
		<comments>http://www.websurfshack.net/2008/10/doodlebugged/#comments</comments>
		<pubDate>Sat, 25 Oct 2008 15:14:54 +0000</pubDate>
		<dc:creator>james</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://www.websurfshack.net/?p=19</guid>
		<description><![CDATA[The effect of a Google Doodle on a web server
A site I work on recently had the honour of being specifically targeted by a (UK) Google Doodle. Â Fortunately we had some notice from Google and the client that the site was going to be the subject of some increased traffic so we decided to take [...]]]></description>
		<wfw:commentRss>http://www.websurfshack.net/2008/10/doodlebugged/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
