Architecting, installing and maintaining your SAS environment

Using DNS Alias to redirect base SAS Studio URL and mask the mid-tier server name

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 17
Accepted Solution

Using DNS Alias to redirect base SAS Studio URL and mask the mid-tier server name

[ Edited ]

Hi All,

 

We have SAS Studio running on abcd.org.com so the SAS Studio URL we type in the browser is "http://abcd.org.com:7980/SASStudio" Now we recently configured a DNS Alias - "sasstudiodev.org.com", such that both abcd.org.com and sasstudiodev.org.com have the same ip address.

 

Now I am trying to work out a way to use "sasstudiodev.org.com" throughout a SAS Studio session such that when a user enters "sasstudiodev.org.com", it redirects to "abcd.org.com:7980/SASStudio", but the URL seen in the address bar remains "sasstudiodev.org.com/~/~" and the user does not know what the underlying mid-tier server really is. Is there a way to do it? I read about configuring reverse proxy, I tried doing it but it did not work for me. If there is a way to use my apache web server (and not SAS') then please let me know.

 

I am using SAS 9. 4M5 and Studio version 3.71. OS is Linux for x64

 

Thanks.


Accepted Solutions
Solution
a month ago
Trusted Advisor
Posts: 1,558

Re: Using DNS Alias to redirect base SAS Studio URL and mask the mid-tier server name

Posted in reply to shirishkamath

Great topic, @shirishkamath.

 

You have got 2-3 options to achieve this.

 

1- The reverse proxy is a good idea, how ever, it is complex for people not used to apply it on a SAS server. For this, I highly recommend you a SAS consultant, expert in SAS deployments. Your SAS representative will be able to help you and pin point you to the right SAS team or an specialised SAS partner.

 

2- Another option, if you have a good Web administrator, is to implement a URL rewrite rule in the SAS Web Server.

https://httpd.apache.org/docs/2.0/misc/rewriteguide.html

https://httpd.apache.org/docs/2.4/rewrite/remapping.html

 

3- Probably your best option, (simplier, SAS-managed and not overkilling) would be to update your hostname selected in the SAS installation. You can achieve this with the SAS Deployment Manager and some grep tools. You can try to do this by yourself and, if it does not work either, an especialised SAS consultant can help you with it.

http://documentation.sas.com/?docsetId=bisag&docsetTarget=n0zdcqxsmd21wtn17vt0w2prek90.htm&docsetVer...

http://documentation.sas.com/?docsetId=bisag&docsetTarget=n1ov3paky6afj8n1bj7l55o8jvw5.htm&docsetVer...

 

Kind regards,

Juan

View solution in original post


All Replies
Solution
a month ago
Trusted Advisor
Posts: 1,558

Re: Using DNS Alias to redirect base SAS Studio URL and mask the mid-tier server name

Posted in reply to shirishkamath

Great topic, @shirishkamath.

 

You have got 2-3 options to achieve this.

 

1- The reverse proxy is a good idea, how ever, it is complex for people not used to apply it on a SAS server. For this, I highly recommend you a SAS consultant, expert in SAS deployments. Your SAS representative will be able to help you and pin point you to the right SAS team or an specialised SAS partner.

 

2- Another option, if you have a good Web administrator, is to implement a URL rewrite rule in the SAS Web Server.

https://httpd.apache.org/docs/2.0/misc/rewriteguide.html

https://httpd.apache.org/docs/2.4/rewrite/remapping.html

 

3- Probably your best option, (simplier, SAS-managed and not overkilling) would be to update your hostname selected in the SAS installation. You can achieve this with the SAS Deployment Manager and some grep tools. You can try to do this by yourself and, if it does not work either, an especialised SAS consultant can help you with it.

http://documentation.sas.com/?docsetId=bisag&docsetTarget=n0zdcqxsmd21wtn17vt0w2prek90.htm&docsetVer...

http://documentation.sas.com/?docsetId=bisag&docsetTarget=n1ov3paky6afj8n1bj7l55o8jvw5.htm&docsetVer...

 

Kind regards,

Juan

Frequent Contributor
Posts: 145

Re: Using DNS Alias to redirect base SAS Studio URL and mask the mid-tier server name

Posted in reply to JuanS_OCS

Fully agree with @JuanS_OCS, go with the 3rd option. Setting up a reverse proxy http doesn't work as good. Replacing the FQDN Web server hostname woth the DNS alias in the SAS metadata repository is the best way to go imho.

New Contributor
Posts: 4

Re: Using DNS Alias to redirect base SAS Studio URL and mask the mid-tier server name

Posted in reply to JuanS_OCS

All three options provided by Juan are excellent and it could be that option 3 is best for your site. However, if you're truly looking to replace "abcd.org.com:7980" with "sasstudiodev.org.com" then you'll need to go with option 1 and use a reverse proxy. When not specifying a port (i.e. :7980) in the URL, the browser defaults to http port 80. Options 2 and 3 will continue to use the default SAS WebServer port of 7980 so your updated solution would still have a URL of http://sasstudiodev.org.com:7980/SASStudio. If that's acceptable to you and your users, I agree that option 3 is likely the most straightforward.

 

The primary prerequisite for option 1 is that you'll need Administrator/root or sudo-to-root access to your server to be able to run on port 80 and also to configure your web server to start at boot, etc.

 

Cheers,

 

Spencer

Occasional Contributor
Posts: 17

Re: Using DNS Alias to redirect base SAS Studio URL and mask the mid-tier server name

Posted in reply to JuanS_OCS
Hi Juan,

Now we configured a load balanced URL that will direct the request from "sasstudiodev.org.com" to "http://abcd.org.com:7980/SASStudio" . Note that abcd and sasstudiodev do not have same ip address and sasstudiodev is a load balanced URL. But now we would like to ensure that the host name (i.e. abcd) is not visible to end users. Hence when a user types "sasstudiodev.org.com", SAS should connect to the available mid-tier node based on LB algorithm but the URL displayed in the address bar should NEVER expose the host name, ie. it should still show sasstudiodev.org.com/~/~

Is this possible?
Trusted Advisor
Posts: 1,558

Re: Using DNS Alias to redirect base SAS Studio URL and mask the mid-tier server name

[ Edited ]
Posted in reply to shirishkamath

Hello @shirishkamath,

 

yes, you can, with URL Rewrite rules. Carefull and test as much as you need before releasing.

 

PS. I already thought about it when you posted the last answer, but I thought: "well, it is working, so no need to add anything", but I do:

I think a load balancing is a bit over killing in this case, since it seems you just put a URL forwarding rule, and that's it. Hence, a normal Web Server (any) can do the same job. Just FYI Smiley Happy

Occasional Contributor
Posts: 17

Re: Using DNS Alias to redirect base SAS Studio URL and mask the mid-tier server name

Posted in reply to shirishkamath
Hi All,

Thank you so much for the detailed replies. Really appreciate it.

We have decided to go for a load balancer and as and when add multiple mid tier nodes, it will help us in routing incoming traffic accordingly.

But Juan, your post is indeed clear and provided me with immense knowledge about how to setup DNS alias.

Thank you.
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 6 replies
  • 303 views
  • 9 likes
  • 4 in conversation