IIS Rewrite Rule to Alpha5

Hi there,

I'm struggling with writing a basic IIS rewrite rule. Could someone please help.

I've got IIS (running on port 80) and also the Alpha5 webserver (running on port 81). I can request an alpha five web page by entering http://www.datamix.co.uk:81/testalpha/ (so I know Alpha 5 server is working fine on port 81)
What I want a user to do is enter http://www.datamix.co.uk/testalpha/ without the port number and for the url to be written by IIS to http://www.datamix.co.uk:81/testalpha/

My current configuration which is set under the IIS Default Web Site and the Server Proxy Settings are enabled under the Application Request Routing Cache feature is as follows.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Rewrite rule1 for Alpha5" patternSyntax="Wildcard" stopProcessing="false">
                    <match url="*datamix.co.uk*" negate="false" />
                    <conditions>
                    </conditions>
                    <action type="Rewrite" url="http://www.datamix.co.uk:81 {R:0}" appendQueryString="true" logRewrittenUrl="true" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

I'm getting the following page .....

Service Unavailable
 
--------------------------------------------------------------------------------

HTTP Error 503. The service is unavailable.

 Any help greatly appreciated.

Joe
LVL 2
dataflowjoeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dataflowjoeAuthor Commented:
I continued looking and came across this link which explains it..

http://www.iis.net/learn/extensions/url-rewrite-module/using-the-url-rewrite-module

I'll close the question now.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dataflowjoeAuthor Commented:
The best answer I could find out there
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Server Apps

From novice to tech pro — start learning today.