Home Analyst Portal

Setting up IIS Rewrite for Portal to "servicedesk"

Karen_Bruster1Karen_Bruster1 Member IT Monkey ✭

Good morning,

I am trying to setup the Cireson portal to redirect to "servicedesk".
First I have a Load Balancer that is setup to change HTTP to HTTPs, but it can't do redirect (according to my engineer).

So I installed IIS rewrite and downloaded the following instructions: http://fawzi.wordpress.com/2013/03/01/scsm-2012-self-service-portal-redirection/ . The only issue I have is which page do I use for the rewrite map and pattern.

Best Answer

  • Karen_Bruster1Karen_Bruster1 Member IT Monkey ✭
    Answer ✓
    @Brian_Wiest In the end we decided to just add it to the IIS Bindings and see if that did the trick. So far it seems to be working.

Answers

  • Adam_DzyackyAdam_Dzyacky Product Owner Contributor Monkey ✭✭✭✭✭
    edited August 2017
    I think I can help - 

    1. Go to the CiresonPortal site within IIS and head into URL Rewrite
    2. Add Rule -> Blank Rule
    3. Rule Name = HTTP to HTTPS (you can call this whatever you'd like)
    4. Requested URL = Matches the Pattern
    5. Using = Regular Expression
    6. Pattern = (.*)
    7. Conditions
    7a. Condition Input = {HTTPS}
    7b. Check in input string = Matches the Pattern
    7c. Pattern = ^OFF$
    8. Action type = Redirect
    8a. Action Properties Redirect URL = https://{HTTPS_HOST}/{R:1}
    8b. Append query string = true/check this box off
    8c. Redirect type =  Permanent (301)


    So the pattern is effectively "HTTPS is not being called so someone used the HTTP version" and the redirect is a variable that points to the the name of the HTTPS host using Rule 1 (i.e. the rule we've just created here).
  • Karen_Bruster1Karen_Bruster1 Member IT Monkey ✭
    @Adam_Dzacky Are these the instructions for changing the Http to Https, because my Load Balancer does this already. I need to redirect the default https://ciresonPortal.com/ServiceCatalog/Listing/#/ to 'servicedesk" when you type it in to the address bar
  • Adam_DzyackyAdam_Dzyacky Product Owner Contributor Monkey ✭✭✭✭✭
    Ah - I did in fact misread/was confused by the "...HTTP to HTTPS, but it can't do redirect"
  • Brian_WiestBrian_Wiest Customer Super IT Monkey ✭✭✭✭✭
    @Karen_Bruster1
    Attempting to get better understanding.
    Are you attempting to allow someone in your org to open the browser, type "servicedesk" in the url hit enter and the webportal will open?
  • Karen_Bruster1Karen_Bruster1 Member IT Monkey ✭
    @Brian_wiest Yes that is what the customer wants.
  • Brian_WiestBrian_Wiest Customer Super IT Monkey ✭✭✭✭✭
    You do that in DNS.
    Assuming this is an internal application on a domain.
    Have your AD admin open DNS 
    Setup a CNAME record for servicedesk to the IP set in your load balance
    The load balancer will perform the HTTP->HTTPS conversion
    Then in IIS setup the binding to servicedesk on https with cert. 

    Note 
    Depending on your org browser settings. It might default to a web search instead of DNS query. Most modern browsers perform this. So most of the time the root site setup is servicedesk.internaldomain.com also https://servicedesk will work.
    HTH
  • Karen_Bruster1Karen_Bruster1 Member IT Monkey ✭
    Answer ✓
    @Brian_Wiest In the end we decided to just add it to the IIS Bindings and see if that did the trick. So far it seems to be working.
Sign In or Register to comment.