<div dir="ltr"><div>Since the list is slow this week....</div><div><br></div>Ever since the push for DNS and FQDN over IP Address, I have been giving application servers a Subject Alternative Name (SAN) so that users accessing Self-Care Portal, Finesse, etc. do not have to be bothered with server names.<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>E.g., </div><div>Instead of this:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><a href="https://mspvmcucm001.company.com/ucmuser">https://mspvmcucm001.company.com/ucmuser</a></div></blockquote><div><br></div><div>They would be able to use this:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><a href="https://myphone.company.com/ucmuser">https://myphone.company.com/ucmuser</a></div></blockquote></blockquote><div><br></div><div>That works pretty well, and Tomcat certs are easily signed to support the extra alias.</div><div><br></div><div>However, when it comes to UCCX, it's a little more complicated with the following example:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><a href="https://finesse.company.com:8445/desktop">https://finesse.company.com:8445/desktop</a></div></blockquote><div><br></div><div>Because the alias is not exactly fitting for all things on UCCX, such as:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><a href="https://finesse.company.com:8444/cuic">https://finesse.company.com:8444/cuic</a></div></blockquote><div><br></div><div>That's confusing, and also because the user still has to remember the port and path on the end.</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><a href="https://finesse.company.com">https://finesse.company.com</a> will not automatically take you to <a href="https://finesse.company.com:8445/desktop">https://finesse.company.com:8445/desktop</a></div></blockquote><div><br></div><div>Today I had a co-worker ask me how it might be possible to have both:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>A) A different alias for each sub-component of the application server (E.g., Finesse vs CUIC)</div><div><br></div><div>B) Have the port and path appended automatically</div></blockquote><div><br></div><div>I decided that a shim would be appropriate here.  We would take the various aliases, send them to a web server, which would then initiate an HTTP Header Location redirect to the appropriate port and path.</div><div><br></div><div>A PHP example could be:</div><div><br></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace, monospace">URL: <a href="https://agent.company.com/">https://agent.company.com/</a></font></div></blockquote></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace, monospace">PHP: <?php header('Location: <a href="https://mspvmuccx001.company.com:8445/desktop''">https://mspvmuccx001.company.com:8445/desktop''</a>); exit; ?></font></div></blockquote><div><br></div><div>This uses the <a href="https://en.wikipedia.org/wiki/HTTP_location">HTTP Location</a> header, which sends an HTTP 3XX response code to the client and let's them know where to go to get the "right" page.  Unfortunately, that does mean that the address changes in your browser from the first URL to the second URL.  This isn't terrible, but it does mean that you'll still want a friendly looking CNAME record for your host still, as I described above.</div><div><br></div><div>But, this would require me to install a web server in each environment and configure it, or ask for shared web server space.  A better solution?  The cloud!</div><div><br></div><div>I stumbled across a public service that does just this.  The cloud service I found is:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><a href="https://www.easyredir.com/" target="_blank" style="font-size:12.8px">https://www.easyredir.com/</a></div></blockquote><div><br></div><div>They have both paid and a free plans:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><a href="https://www.easyredir.com/free-url-redirection">https://www.easyredir.com/free-url-redirection</a></div></blockquote><div><br></div><div>I was able to set this up in about 10 minutes and it works exactly like I have explained above.  I have no affiliation to them, and I'm sure there's other services out there.</div><div><br></div><div>Icing on the cake I suppose, I was even able to take a public domain record (E.g., <a href="http://company.com">company.com</a>) and redirect it to a private domain record (E.g., company.local), proving that your application servers need not be accessible from the internet.</div><div><br></div><div>In fact, your target url doesn't even have to be a public domain either.</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>E.g.,</div><div><a href="https://agent.company.local">https://agent.company.local</a> can point to <a href="https://mspvmuccx001.company.local:8445/desktop">https://mspvmuccx001.company.local:8445/desktop</a></div></blockquote><div><br></div><div>The only requirement is that your client PC can resolve the private record (.local) to the public service host (on <a href="http://easyredir.com">easyredir.com</a>), and that the returned redirect location (.local again) is also accessible to your client PC.</div><div><br></div><div>Has anyone come across something like this before?  How are you solving all the different ports and paths now under your administrative domain?</div><div><br></div><div>This does not replace your need for a smart load-balancer in the case of a server failure, though Finesse should at least redirect you to the Master node, should your DNS record point to the Slave.</div></div>