<?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>SupportSages &#187; IIS</title>
	<atom:link href="http://www.supportsages.com/blog/tag/iis/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.supportsages.com/blog</link>
	<description>Technical Support and Server Management : Musings in the fox hole.</description>
	<lastBuildDate>Thu, 05 Jan 2012 03:05:11 +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>Joomla in IIS 7 : SEO Friendly URLs not working</title>
		<link>http://www.supportsages.com/blog/2011/04/joomla-in-iis-7-seo-friendly-urls-not-working/</link>
		<comments>http://www.supportsages.com/blog/2011/04/joomla-in-iis-7-seo-friendly-urls-not-working/#comments</comments>
		<pubDate>Fri, 29 Apr 2011 18:34:44 +0000</pubDate>
		<dc:creator>vince</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[seo friendly urls]]></category>
		<category><![CDATA[url rewrite]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=1796</guid>
		<description><![CDATA[This post is about how to configure Joomla in IIS]]></description>
			<content:encoded><![CDATA[<p><strong>Scenario</strong></p>
<p>A Joomla website hosted in Linux server is migrated to Windows. Several compatibility issues will be reported. The rules in .htaccess file will not work in Windows Servers which will cause malfunctioning of the website. Here are the steps on how to deal with these issues.</p>
<h3><strong>Solution</strong></h3>
<p>For this to work in IIS, a web.config file should be created and the corresponding rules in .htaccess should be imported to the same file. Here is a sample web.config file. Copy the entire content.</p>
<pre>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;configuration&gt;
 &lt;system.webServer&gt;
 &lt;rewrite&gt;
 &lt;rules&gt;
 &lt;rule name="Security Rule" stopProcessing="true"&gt;
 &lt;match url="^(.*)$" ignoreCase="false" /&gt;
 &lt;conditions logicalGrouping="MatchAny"&gt;
 &lt;add input="{QUERY_STRING}" pattern="mosConfig_[a-zA-Z_]{1,21}(=|\%3D)" ignoreCase="false" /&gt;
 &lt;add input="{QUERY_STRING}" pattern="base64_encode.*\(.*\)" ignoreCase="false" /&gt;
 &lt;add input="{QUERY_STRING}" pattern="(\&amp;lt;|%3C).*script.*(\&gt;|%3E)" /&gt;
 &lt;add input="{QUERY_STRING}" pattern="GLOBALS(=|\[|\%[0-9A-Z]{0,2})" ignoreCase="false" /&gt;
 &lt;add input="{QUERY_STRING}" pattern="_REQUEST(=|\[|\%[0-9A-Z]{0,2})" ignoreCase="false" /&gt;
 &lt;/conditions&gt;
 &lt;action type="CustomResponse" url="index.php" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" /&gt;
 &lt;/rule&gt;
 &lt;rule name="SEO Rule"&gt;
 &lt;match url="(.*)" ignoreCase="false" /&gt;
 &lt;conditions logicalGrouping="MatchAll"&gt;
 &lt;add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false" /&gt;
 &lt;add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" pattern="" ignoreCase="false" /&gt;
 &lt;add input="{URL}" negate="true" pattern="^/index.php" ignoreCase="false" /&gt;
 &lt;add input="{URL}" pattern="(/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$" /&gt;
 &lt;/conditions&gt;
 &lt;action type="Rewrite" url="index.php" /&gt;
 &lt;/rule&gt;
 &lt;/rules&gt;
 &lt;/rewrite&gt;
 &lt;/system.webServer&gt;
&lt;/configuration&gt;</pre>
<p>So, the file web.config is ready. Now the rules in .htaccess has to be converted in accordance with IIS. In IIS6, you can make use of the ISAPI_REWRITE module. Go to http://www.isapirewrite.com/ for downloading it.</p>
<p>If you are having IIS7, here are the steps involved in converting those rules.</p>
<p>The x86 version of URL Rewrite module can be downloaded here : <a  title="x86 URL Rewrite Module" href="http://go.microsoft.com/?linkid=9722533" target="_blank">http://go.microsoft.com/?linkid=9722533</a></p>
<p>The x64 version of URL Rewrite module can be downloaded here : <a  title="x64 URL Rewrite Module" href="http://go.microsoft.com/?linkid=9722532." target="_blank">http://go.microsoft.com/?linkid=9722532</a></p>
<p>Install the module, restart the IIS manager. Choose the website in which you have to convert the rules (under Sites category). You will see the &#8216;URL Rewrite&#8217; module in IIS.</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2011/03/IIS_1.png" class="thickbox no_icon" rel="gallery-1796" title="IIS_1"><img class="alignnone size-full wp-image-1806" title="IIS_1" src="http://www.supportsages.com/blog/wp-content/uploads/2011/03/IIS_1.png" alt="" width="508" height="376" /></a></p>
<p>Open it. Since the web.config file is already created with some predefined rules, you will see it as Inbound rules (by the Names &#8211; Security Rule and SEO Rule).</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2011/03/IIS_2.png" class="thickbox no_icon" rel="gallery-1796" title="IIS_2"><img class="alignnone size-full wp-image-1811" title="IIS_2" src="http://www.supportsages.com/blog/wp-content/uploads/2011/03/IIS_2.png" alt="" width="575" height="335" /></a></p>
<p>You can convert the rules in .htaccess file by accessing the &#8216;Import Rules&#8217; under Inbound Rules category in the Actions pane.</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2011/03/IIS_3.png" class="thickbox no_icon" rel="gallery-1796" title="IIS_3"><img class="alignnone size-full wp-image-1813" title="IIS_3" src="http://www.supportsages.com/blog/wp-content/uploads/2011/03/IIS_3.png" alt="" width="191" height="352" /></a></p>
<p>Choose the .htaccess file and click Import. You will see the rules in &#8216;Rewrite Rules&#8217; section and the converted rules in &#8216;Converted Rules&#8217; option. Click Apply on the  Actions pane on the right hand side to save these rules to the web.config file (If a web.config file was not created as mentioned earlier, that file will be newly created). Make sure there are no conflicts in the conversion. Watch the Summary on the bottom end. There was a conflict when we did it, its shown here. In such cases, remove any unsupported rules and then click Apply.</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2011/03/IIS_4.png" class="thickbox no_icon" rel="gallery-1796" title="IIS_4"><img class="alignnone size-full wp-image-1816" title="IIS_4" src="http://www.supportsages.com/blog/wp-content/uploads/2011/03/IIS_4.png" alt="" width="705" height="528" /></a><strong> </strong></p>
<p><strong>Converting PHP to FastCGI</strong></p>
<p>We have do it from Plesk control panel. If you don&#8217;t have the administrator access, you may need to contact your Administrator. Others (Gods !) read on</p>
<p>Select the Domain, go to Web Hosting Settings.</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2011/03/Plesk_1.png" class="thickbox no_icon" rel="gallery-1796" title="Plesk_1"><img class="alignnone size-full wp-image-1820" title="Plesk_1" src="http://www.supportsages.com/blog/wp-content/uploads/2011/03/Plesk_1.png" alt="" width="668" height="123" /></a></p>
<p>Scroll down to Services. Choose PHP support to run as FastCGI application.</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2011/03/Plesk_2.png" class="thickbox no_icon" rel="gallery-1796" title="Plesk_2"><img class="alignnone size-full wp-image-1822" title="Plesk_2" src="http://www.supportsages.com/blog/wp-content/uploads/2011/03/Plesk_2.png" alt="" width="581" height="160" /></a></p>
<p><strong>Final Steps</strong></p>
<p>Go to Joomla Administrator interface. Access <strong>Global Configuration</strong> from the main menu. Under SEO Settings, make sure the following are set to Yes</p>
<p>Search Engine Friendly URLs : Yes</p>
<p>Use Apache mod_rewrite : Yes</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2011/03/SEO.png" class="thickbox no_icon" rel="gallery-1796" title="SEO"><img class="alignnone size-full wp-image-1821" title="SEO" src="http://www.supportsages.com/blog/wp-content/uploads/2011/03/SEO.png" alt="" width="310" height="147" /></a></p>
<p>Done, From now your Joomla website shoule work as smooth as it were in the Linux server. Sit back and Enjoy !</p>
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=Joomla+in+IIS+7+%3A+SEO+Friendly+URLs+not+working+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1796" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter3.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=Joomla+in+IIS+7+%3A+SEO+Friendly+URLs+not+working+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1796" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2011/04/joomla-in-iis-7-seo-friendly-urls-not-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bad Request (Invalid Hostname) when accessing via IP</title>
		<link>http://www.supportsages.com/blog/2009/12/bad-request-invalid-hostname-when-accessing-via-ip/</link>
		<comments>http://www.supportsages.com/blog/2009/12/bad-request-invalid-hostname-when-accessing-via-ip/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 19:19:57 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Bad Request]]></category>
		<category><![CDATA[Invalid Hostname]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=610</guid>
		<description><![CDATA[Customer wanted to have a dedicated IP, but once I change the IP from the plesk control panel, I couldn't get the website when accessed using IP. Instead, it was giving me the plesk control panel's default page. Reason ? Default Website was having the IP as "All Unassigned". Set that to the main IP address. But after that I was getting a new error.

What I could get was "Bad Request (Invalid Hostname)" in bold letters. Here is what I did to fix the same.

Start -> Run -> inetmgr -> Expand the (+) -> Websites -> Right click on the ...]]></description>
			<content:encoded><![CDATA[<p>Customer wanted to have a dedicated IP, but once I change the IP from the plesk control panel, I couldn&#8217;t get the website when accessed using IP. Instead, it was giving me the plesk control panel&#8217;s default page. Reason ? Default Website was having the IP as &#8220;All Unassigned&#8221;. Set that to the main IP address. But after that I was getting a new error.</p>
<p>What I could get was &#8220;Bad Request (Invalid Hostname)&#8221; in bold letters. Here is what I did to fix the same.</p>
<p>Start -> Run -> inetmgr -> Expand the (+) -> Websites -> Right click on the domain name -> Take Properties -> Website -> IP Address (make sure that it has the dedicated IP assigned there) and then click &#8220;Advanced&#8221;</p>
<p><strong>Add/Edit Web Site Identification</strong></p>
<p>IP Address : Choose the dedicated IP from drop down list<br />
TCP/IP Port : 80<br />
Host Header Value : Leave it blank (Important)</p>
<p>Leaving the Host Header Value should fix the issue and fetch the website when accessing it using the IP.</p>
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=Bad+Request+%28Invalid+Hostname%29+when+accessing+via+IP+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F610" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter3.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=Bad+Request+%28Invalid+Hostname%29+when+accessing+via+IP+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F610" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2009/12/bad-request-invalid-hostname-when-accessing-via-ip/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>One website in Plesk is asking for user name and password. What is the solution</title>
		<link>http://www.supportsages.com/blog/2009/04/one-website-in-plesk-is-asking-for-user-name-and-password-what-is-the-solution/</link>
		<comments>http://www.supportsages.com/blog/2009/04/one-website-in-plesk-is-asking-for-user-name-and-password-what-is-the-solution/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 08:18:55 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[permissions]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=51</guid>
		<description><![CDATA[This is common issue, but solutions varies based on situations. It could be one or a combination of a solutions listed below. If you had to go through another solution to solve it, please add it over here for others.
<ul>
	<li>Permission issue was making the website to ask for the password. Run the Plesk permissions fix from the Plesk reconfigurator. It could help you 10% of the time</li>
	<li>If it is asking for username and password, right after you changed the password of the account, 80% of the cases, below command based solution would work.
<blockquote>cd %plesk_bin%
websrvmng --update-anon-password --domain-name=<strong>domainname.com</strong></blockquote>
</li>
	<li>Login to plesk, select the ...]]></description>
			<content:encoded><![CDATA[<p>This is common issue, but solutions varies based on situations. It could be one or a combination of a solutions listed below. If you had to go through another solution to solve it, please add it over here for others.</p>
<ul>
<li>Permission issue was making the website to ask for the password. Run the Plesk permissions fix from the Plesk reconfigurator. It could help you 10% of the time</li>
<li>If it is asking for username and password, right after you changed the password of the account, 80% of the cases, below command based solution would work.<br />
<blockquote><p>cd %plesk_bin%<br />
websrvmng &#8211;update-anon-password &#8211;domain-name=<strong>domainname.com</strong></p></blockquote>
</li>
<li>Login to plesk, select the domain, click web directories. And there, select the the protection tab and click remove protection if enabled &#8211; Only 5% chances to have this solve your issue <img src='http://www.supportsages.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>Try resetting the domain password from Plesk, with Additional Write/Modify permissions checked. This may sync the IUSR_username&#8217;s password and the Plesk/FTP password. If it didn&#8217;t move on to next option to manually synchronize it.</li>
<li>Go to IIS &gt; Web sites &gt; <strong>domainname.com</strong> &gt; Properties &gt; Directory Security tab &gt; Click on Edit button within “Authentication and access control” section &gt; enter “<strong>password</strong>” in password filed &gt; click OK.<br />
After that, Go to Users Management &gt; find user IUSR_<strong>pleskusername </strong>&gt; Right Click &gt; set password &gt; proceed &gt; enter “<strong>password</strong>” &gt; click OK. If this also didn&#8217;t fix, issue is much more serious and move on to next options</li>
<li>Depending on the Plesk versions you use, Plesk group `psacln` should be allowed to access  the server from the network. For that Go to, Administrative Tools &gt; Security Settings &gt; Local Polices &gt; User Rights Assignment &gt; Access this computer from the network</li>
<li>Check whether there is any new FTP accounts added with the &#8220;<label for="fid-home">Home directory</label>&#8221; as httpdocs itself. If so please remove it and then change the password at Domain Setup and save it</li>
<li>Check whether the <strong>plesk_username</strong> and<strong> IIS_pleskusernam</strong>e are added and has proper permissions for the <strong>DriveLetter</strong>:\Inetpub\vhosts\<strong>domainname.com</strong> as well as <strong>DriveLetter</strong>:\Inetpub\vhosts\<strong>domainname.com</strong>\httpdocs.</li>
</ul>
<p>Okay those are my current solutions.</p>
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=One+website+in+Plesk+is+asking+for+user+name+and+password.+What+is+the+solution+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F51" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter3.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=One+website+in+Plesk+is+asking+for+user+name+and+password.+What+is+the+solution+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F51" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2009/04/one-website-in-plesk-is-asking-for-user-name-and-password-what-is-the-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

