How do I get IIS 7.0 to run virtual hosts as in Apache?
I've tried the hosts file but it doesn't work, and using Apache's reverse proxy didn't help either - as suggested elsewhere on the net.

Anyone able to figure this one out?

Thanks!

Hi, i also need to configure Apache style virtual hosts. To host multiple sites on 1 hosting account.
This is supposedly done through the IIS 7 Manager module URL Rewrite.
You might have to first install the MS Platform installer.
Connect to your site and open up theURL Rewrite module.

Then is becomes, duh, complicated.

So far i have this, which won't work:

Apache virtualhost solution:

<VirtualHost *>
ServerName www.tweetcheck.me
DocumentRoot /tweetcheck
</VirtualHost>

IIS 7 Manager - URL Rewrite solution:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="tweetcheck.me" patternSyntax="ECMAScript" stopProcessing="true">
<match url="tweetcheck.me" />
<action type="Redirect" url="/tweetcheck" />
</rule>
</rules>
<rewriteMaps>
<rewriteMap name="301" />
</rewriteMaps>
</rewrite>
</system.webServer>
</configuration>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.