-1

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!

2
Contributors
1
Reply
3
Views
8 Years
Discussion Span
Last Post by dizid
0

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>

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.