Solved

Redirect without change URL in iis

Posted on 2014-12-31
5
437 Views
Last Modified: 2015-01-07
Hello,

I'm trying to add rule in IIS that will redirect URL to different url that start with https, I know that the rule should be on rewrite option, for example:
I need to redirect URLA: "mail.domainA.com" to URL B "https://domainB.com", in the website will show  what I typed in url A.

Any idia?
Dvir
0
Comment
Question by:compx_it
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 78

Expert Comment

by:arnold
ID: 40526830
That is not possible unless you configure your IIS to proxy the requests instead of redirecting the user.
In the example you posted of using the HTTPS, proxying will unermine the reason for https which is to secure the communications.

Since this is a secure site a requirement that the certificate for domainb.com andinclude the host from domaina.com (SAN certificate domainb.com, also mail.domainb.com, etc.). You would then using DNS to modifiy the host on domaina.com to point to the domainb.com IP.
0
 

Author Comment

by:compx_it
ID: 40527881
Ok, thanks for your answer, and if I don't using https? Is it possible?
0
 
LVL 78

Accepted Solution

by:
arnold earned 250 total points
ID: 40528039
Not without the suggestions made in prior responses.

Any redirect on your IIS site configuration will result in the browser reflecting the new address.

This is the equivalent of you sending a letter to an address.  You then receive a response saying, all communications for this address need to be sent to this new address.
If you setup your site to proxy the requests, they will appear as you are asking.

It will convert the mail from being redirected to being forwarded (i.e. within the entity that received the initial request, they handle the final disposition without the sender's input)
0
 
LVL 33

Assisted Solution

by:shalomc
shalomc earned 250 total points
ID: 40528954
If you want to completely hide domainB behind domainA, then you must use a reverse proxy, like explained before.
Here is a link to a well written guide on IIS reverse proxy configuration.
http://weblogs.asp.net/owscott/creating-a-reverse-proxy-with-url-rewrite-for-iis

Having said that, afaik ARR cannot front a secure site. Read this post from the IIS development team.
http://forums.iis.net/post/1883245.aspx

IF domainB must be protected by SSL, then for goodness sake get yourself a real reverse proxy, like Apache, nginx, or a load balancer.

Alternatively, there is a way to semi-hide domainB with an iframe.
Something like this can be served by domainA
<iframe src="https://domainB.com/" height="100%" width="100%"/>
0
 

Author Comment

by:compx_it
ID: 40535394
Thanks,

I'll try it.
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question