IIS 8 and ARR with several other servers

I'm trying to configure IIS 8 using the ARR module and Url rewrite 2 to work with two other servers (Youtrack and TeamCity works), and it just doesn't work ...

Suppose my server has the following URL: server.test.domain.com (I have no control over this part), so I want 3 websites:

server.test.domain.com -> default web site in IIS (classic web) server.test.domain.com/youtrack -> Catalina with Youtrack server.test.domain.com/teamcity -> Catalina with TeamCity 

on the server when I look at localhost: 81 Youtrack works for me and on localhost: 82 TeamCity also works fine for me.

I followed this guide: http://blogs.endjin.com/2010/11/a-step-by-step-guide-to-hosting-teamcity-in-iis-7/

but in the last part, he rewrites it to some domain name, and I don’t know which URL to rewrite in RULE, which I should use to make it work in my way.

+4
source share
1 answer

Okay, so the trick was with this rewriteRule: ^(.*)/youtrack/(.*) , Thanks, man, that you really helped me. Only I have to rewrite to localhost: 81 / {R: 2}. In addition, as Malvin said, there is a couple in which you need to enable application request routing in the hidden menu, and that was the whole trick.

+1
source

Source: https://habr.com/ru/post/1492719/


All Articles