<?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>Rob Boek &#187; IIS7</title>
	<atom:link href="http://robboek.com/tag/iis7/feed/" rel="self" type="application/rss+xml" />
	<link>http://robboek.com</link>
	<description></description>
	<lastBuildDate>Sat, 15 May 2010 19:16:56 +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>Switched Hosting Companies</title>
		<link>http://robboek.com/2009/01/09/switched-hosting-companies/</link>
		<comments>http://robboek.com/2009/01/09/switched-hosting-companies/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 11:18:58 +0000</pubDate>
		<dc:creator>Rob Boek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[IIS7]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://robboek.com/2009/01/09/switched-hosting-companies/</guid>
		<description><![CDATA[I mentioned before that I was using an IIS7 shared plan on GoDaddy.com. Their shared hosting plans are supposed to support multiple domains. Unfortunately, they implement the domains using some kind of URL rewriting that conflicted with the URL rewriting I setup for WordPress. After trying several different configurations that resulted in my blog being [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I mentioned before that I was using an IIS7 shared plan on <a href="http://www.godaddy.com/">GoDaddy.com</a>. Their shared hosting plans are supposed to support multiple domains. Unfortunately, they implement the domains using some kind of URL rewriting that conflicted with the <a href="http://robboek.com/2009/01/03/using-wordpress-on-iis7/">URL rewriting I setup for WordPress</a>. After trying several different configurations that resulted in my blog being down for an extended period of time, I decided it is impossible (or at least more painful then I wanted) for me to host multiple sites.</p>
<p>I really don’t like shopping for hosting companies, because there are so many of them and a lot of different feature combinations. I wanted one that ran Windows 2008 with IIS7, had support SQL Server 2008, as well as PHP and MySQL (for WordPress). It also had to be affordable. After looking around quite a bit I decided on <a href="http://members.softsyshosting.com/aff.php?aff=025">SoftSys Hosting</a>. The reviews online were mixed, with some people really liking them, and others complaining. It’s hard to know who to believe, because it seems like there are a lot of fake reviews on the sites in both directions. Time will tell how good they are.</p>
]]></content:encoded>
			<wfw:commentRss>http://robboek.com/2009/01/09/switched-hosting-companies/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Using WordPress on IIS7</title>
		<link>http://robboek.com/2009/01/03/using-wordpress-on-iis7/</link>
		<comments>http://robboek.com/2009/01/03/using-wordpress-on-iis7/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 08:34:59 +0000</pubDate>
		<dc:creator>Rob Boek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[IIS7]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://robboek.com/?p=65</guid>
		<description><![CDATA[I’ve been running WordPress 2.7 for a few weeks now and I have been very happy with it so far. In this post I’ll share my thought process behind running WordPress on IIS7 and the details on how I have it setup.
I setup my first blog back in 2006 running on dasBlog. I was never [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I’ve been running <a href="http://wordpress.org/">WordPress</a> 2.7 for a few weeks now and I have been very happy with it so far. In this post I’ll share my thought process behind running WordPress on IIS7 and the details on how I have it setup.</p>
<p>I setup my first blog back in 2006 running on <a href="http://www.dasblog.info/">dasBlog</a>. I was never really happy with it, mostly because I couldn’t find a theme I liked. I wrote a few posts, then when I changed hosting providers, I never setup the permissions correctly and was unable to post. It would have been an easy fix, but it became an excuse to not blog.</p>
<p>When I decided to start blogging again, I wanted something that would be easy to setup, and wouldn’t take a lot of effort to maintain. Since I’m a fan of Google’s offerings, I started off using <a href="http://www.blogger.com">Blogger</a>. Unfortunately, <a href="http://robboek.com/2008/12/12/blog-on-hold/">I ran into some DNS limitations</a> and couldn’t get things setup the way I wanted. I also checked out the <a href="http://wordpress.com/">hosted WordPress solution</a>, but it was even more limited then Blogger.</p>
<p>I decided to use WordPress as my blogging platform because there is a very active community, lots of themes available, and because you there are plugins that allow you to add whatever features you want without any coding.</p>
<p>Since IIS7 has decent PHP support, I decided to use a Windows plan on <a href="http://gadaddy.com">GoDaddy.com</a>. This will allow me to put .NET apps on my site down the road. I also have another site that I need to host that requires .NET and this keeps my hosting costs lower.</p>
<p>Installing WordPress 2.7 was pretty easy. I just had to create a MySQL database, upload the WordPress files and run through the setup.</p>
<p>Next, I had to get <a href="http://codex.wordpress.org/Introduction_to_Blogging#Pretty_Permalinks">pretty permalinks</a> working the way I wanted them. One way to do this would be to use Microsoft’s <a href="http://learn.iis.net/page.aspx/460/using-url-rewrite-module/">URL Rewrite Module</a>. The problem is that GoDaddy doesn’t currently support the URL Rewrite Module (I’ve heard that they plan to support it soon). I ended up using the <a href="http://www.managedfusion.com/products/url-rewriter/">ManagedFusion Url Rewriter</a>.</p>
<h2>Setting Up the Managed Fusion Url Rewriter to work with WordPress</h2>
<p>Download the ManagedFusion Url Rewriter files <a href="http://www.managedfusion.com/products/url-rewriter/">here</a>.</p>
<p>If you don’t already have one, create a folder named “bin” at the root of your blog.</p>
<p>Copy ManagedFusion.Rewriter.dll and ManagedFusionRewriter.pdb into the bin folder you just created.</p>
<p>If you don’t have one, create a file named “web.config” in the root folder of your blog that looks like the one below, otherwise just add the info to your existing web.config.</p>
<p><strong>web.config</strong></p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;system.webserver<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;validation</span> <span style="color: #000066;">validateintegratedmodeconfiguration</span>=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;modules</span> <span style="color: #000066;">runallmanagedmodulesforallrequests</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;ManagedFusion.Rewriter.RewriterModule, ManagedFusion.Rewriter&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;RewriterModule&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/modules<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;handlers<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;RewriterProxyHandler&quot;</span> <span style="color: #000066;">path</span>=<span style="color: #ff0000;">&quot;RewriterProxy.axd&quot;</span> <span style="color: #000066;">verb</span>=<span style="color: #ff0000;">&quot;*&quot;</span> <span style="color: #000066;">precondition</span>=<span style="color: #ff0000;">&quot;integratedMode&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/handlers<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/system.webserver<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Create a file named “ManagedFusion.Rewriter.rules” in the root folder of your blog. This will allow you to use .htaccess syntax to handle the Url Rewrites. I set mine up to remove the www from my hostname, remove index.php from the url, and redirect urls from my old blog to the new location.</p>
<p><strong>ManagedFusion.Rewriter.rules</strong></p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #adadad; font-style: italic;">#  Managed Fusion Url Rewriter</span>
<span style="color: #adadad; font-style: italic;">#  http://managedfusion.com/products/url-rewriter/</span>
<span style="color: #adadad; font-style: italic;">#</span>
<span style="color: #adadad; font-style: italic;">#  Developed by: Nick Berardi</span>
<span style="color: #adadad; font-style: italic;">#       Support: support@managedfusion.com</span>
<span style="color: #adadad; font-style: italic;">#</span>
<span style="color: #00007f;">RewriteEngine</span> <span style="color: #0000ff;">on</span>
&nbsp;
<span style="color: #adadad; font-style: italic;">#</span>
<span style="color: #adadad; font-style: italic;"># Place Rules Below</span>
<span style="color: #adadad; font-style: italic;">#</span>
&nbsp;
<span style="color: #adadad; font-style: italic;"># misc WordPress rewrites</span>
<span style="color: #00007f;">RewriteRule</span> ^/wp-login\.php$ /wp-login.php [L]
<span style="color: #00007f;">RewriteRule</span> ^/wp-comments-post\.php$ /wp-comments-post.php [L]
<span style="color: #00007f;">RewriteRule</span> ^/wp-admin/(.*)$ /wp-admin/$<span style="color: #ff0000;">1</span> [L]
&nbsp;
<span style="color: #adadad; font-style: italic;"># deny access to evil robots site rippers offline browsers and other nasty scum</span>
<span style="color: #00007f;">RewriteCond</span> %{HTTP_USER_AGENT} ^Anarchie [OR]
<span style="color: #00007f;">RewriteCond</span> %{HTTP_USER_AGENT} ^ASPSeek [OR]
<span style="color: #00007f;">RewriteCond</span> %{HTTP_USER_AGENT} ^attach [OR]
<span style="color: #00007f;">RewriteCond</span> %{HTTP_USER_AGENT} ^autoemailspider [OR]
<span style="color: #00007f;">RewriteCond</span> %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
<span style="color: #00007f;">RewriteCond</span> %{HTTP_USER_AGENT} ^Xenu [OR]
<span style="color: #00007f;">RewriteCond</span> %{HTTP_USER_AGENT} ^Zeus.*Webster [OR]
<span style="color: #00007f;">RewriteCond</span> %{HTTP_USER_AGENT} ^Zeus
<span style="color: #00007f;">RewriteRule</span> ^.* - [F,L]
&nbsp;
<span style="color: #adadad; font-style: italic;"># remove www</span>
<span style="color: #00007f;">RewriteCond</span> %{HTTP_HOST} ^www\.robboek\.com$ [NC]
<span style="color: #00007f;">RewriteRule</span> ^(.*)$ http://robboek.com$<span style="color: #ff0000;">1</span> [R=<span style="color: #ff0000;">301</span>]
&nbsp;
<span style="color: #adadad; font-style: italic;"># redirect old urls</span>
<span style="color: #00007f;">RewriteRule</span> ^/<span style="color: #ff0000;">2008</span>/<span style="color: #ff0000;">12</span>/blog-on-hold.html$ /<span style="color: #ff0000;">2008</span>/<span style="color: #ff0000;">12</span>/<span style="color: #ff0000;">12</span>/blog-on-hold/ [R=<span style="color: #ff0000;">301</span>]
<span style="color: #00007f;">RewriteRule</span> ^/<span style="color: #ff0000;">2008</span>/<span style="color: #ff0000;">11</span>/google-chrome-wont-start-in-vista-x64\.html$ /<span style="color: #ff0000;">2008</span>/<span style="color: #ff0000;">11</span>/<span style="color: #ff0000;">16</span>/google-chrome-wont-start-in-vista-x64/ [R=<span style="color: #ff0000;">301</span>]
<span style="color: #00007f;">RewriteRule</span> ^/<span style="color: #ff0000;">2008</span>/<span style="color: #ff0000;">11</span>/pass-community-summit-<span style="color: #ff0000;">2008</span>-events.html$ /<span style="color: #ff0000;">2008</span>/<span style="color: #ff0000;">11</span>/<span style="color: #ff0000;">14</span>/pass-community-summit-<span style="color: #ff0000;">2008</span>-events-calendar/ [R=<span style="color: #ff0000;">301</span>]
<span style="color: #00007f;">RewriteRule</span> ^/<span style="color: #ff0000;">2008</span>/<span style="color: #ff0000;">11</span>/fort-stevens-camping-trip.html$ /<span style="color: #ff0000;">2008</span>/<span style="color: #ff0000;">11</span>/<span style="color: #ff0000;">14</span>/fort-stevens-camping-trip/ [R=<span style="color: #ff0000;">301</span>]
<span style="color: #00007f;">RewriteRule</span> ^/<span style="color: #ff0000;">2008</span>/<span style="color: #ff0000;">10</span>/first-post.html$ /<span style="color: #ff0000;">2008</span>/<span style="color: #ff0000;">10</span>/<span style="color: #ff0000;">10</span>/first-post/ [R=<span style="color: #ff0000;">301</span>]
<span style="color: #00007f;">RewriteRule</span> ^/blog/CommentView,guid,1d8cba50-0814-4c89-86df-eca669973e8e.aspx$ /<span style="color: #ff0000;">2006</span>/09/<span style="color: #ff0000;">29</span>/junctions-in-windows-vista/ [R=<span style="color: #ff0000;">301</span>]
<span style="color: #00007f;">RewriteRule</span> ^/blog/<span style="color: #ff0000;">2006</span>/09/<span style="color: #ff0000;">29</span>/JunctionsInWindowsVista.aspx$ /<span style="color: #ff0000;">2006</span>/09/<span style="color: #ff0000;">29</span>/junctions-in-windows-vista/ [R=<span style="color: #ff0000;">301</span>]
&nbsp;
<span style="color: #adadad; font-style: italic;"># rewrite all nonexistent files and directories to use index.php for WordPress</span>
<span style="color: #00007f;">RewriteCond</span> %{REQUEST_FILENAME} !-d
<span style="color: #00007f;">RewriteCond</span> %{REQUEST_FILENAME} !-f
<span style="color: #00007f;">RewriteRule</span> ^(.*)$ /index.php$<span style="color: #ff0000;">1</span></pre></div></div>

<p>I also setup a custom 404 error page that will allow me to use the WordPress 404 page in my theme.</p>
<p><strong>404.php</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$qs</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'QUERY_STRING'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$pos</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strrpos</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$qs</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'://'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$pos</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strpos</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$qs</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'/'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$pos</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$qs</span><span style="color: #339933;">,</span> <span style="color: #000088;">$pos</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'PATH_INFO'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'index.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h2>Plugins I&#8217;m using</h2>
<p><strong><a href="http://wordpress.org/extend/plugins/disqus-comment-system/">DISQUS Comment System</a></p>
<p></strong>The main reason I’m using <a href="http://disqus.com/">DISQUS</a> is because comment notification emails weren&#8217;t working for me with the default WordPress comments. It does add some nice functionality though, including threaded comments, comment spam protection, facebook connect integration and more. The other thing I liked about DISQUS is that all of my comments are synced in the WordPress database so if I ever want to stop using DISQUS, all I need to do is disable it.</p>
<p><strong><a href="http://www.google.com/support/feedburner/bin/answer.py?answer=78483&amp;topic=13252">FeedBurner FeedSmith</a></strong></p>
<p>Redirects the RSS links over to <a href="http://feedproxy.google.com/RobBoek">my feed</a> on <a href="http://www.feedburner.com/">FeedBurner</a>.</p>
<p><strong><a href="http://cavemonkey50.com/code/google-analyticator/">Google Analyticator</a></strong></p>
<p>Makes it easy to add <a href="http://www.google.com/analytics/">Google Analytics</a> tracking codes. It also has some nice features like disabling tracking for blog administrators.</p>
<p><strong><a href="http://suche.pytalhost.de/2008/12/13/wordpress-plugin-simple-google-sitemap-v10/">Simple Google Sitemap</a></strong></p>
<p>Generates an XML sitemap to give to the search engines. If you haven’t tried <a href="http://www.google.com/webmaster/tools">Google Webmaster Tools</a> it’s worth a look.</p>
<p><strong><a href="http://wordpress.org/extend/plugins/wp-syntax/">WP-Syntax</a></p>
<p></strong>Easy to use syntax highlighting code like you see in this post.</p>
<h2>Other tweaks</h2>
<p>I’m running the <a href="http://www.revolutiontwo.com/themes/code-gray">Revolution Code Grey theme</a>, with a <a href="http://friendfeed.com/">FriendFeed</a> badge, a <a href="http://disqus.com/">DISQUS</a> comments widget and a and <a href="http://twitter.com/">Twitter</a> updates widget. The rest are just the standard widgets that come with WordPress.</p>
<p>I’m also <a href="http://robboek.com/2008/12/30/use-your-google-account-as-an-openid-provider-for-your-blog/">using my blog as an OpenID using my Google account for authentication</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://robboek.com/2009/01/03/using-wordpress-on-iis7/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
	</channel>
</rss>
