How to perform redirection to specific URL in Syracuse?

SUGGESTED

Hi Guys,

Did anyone ever tried to perform a URL redirection to a specific URL?

By right, I have many users using accessing the SageX3 Web URL using http://IP:8124/auth/login/page , http://localhost:8124/auth/login/page and http://servername:8124/auth/login/page

I want to make every users that is trying to access the SageX3 Web URL by IP/Locahost/Servername to be redirection to another URL which has the proper SSL Binding.

I believed that I could the remove the port 8124 from All\Administration\Administration\Servers and inform all the users to use only the port 443 with the proper name with SSL.

But since there too many users to be contacted and I don't have a proper Web Application Firewall(WAF) that could allow me to to do.

I found a workaround by editing the <Header> element Tag from the the login HMTL file located in  "D:\SafeX3\Syracuse\syracuse\bin\node_modules\@sage\syracuse-lib\public\auth\login.html" with a JaveScript that perform the direction.

<script>
var redirectLocation = "">SAGEX3V12.mycompanyname.com"; // Redirect destination
// Page location and redirectLocation should not be the same
if (window.location.href != redirectLocation) {
// Redirect logic
window.location.replace(redirectLocation);
}

</script>

Now while trying to access the SageX3 Web URL by  IP/Localhost/Servername. It did redirected to my desired SSL URL but after 6 continuous loop attempts even though the JavaScript perform the check properly (window.location.href != redirectLocation) .

Is there any way to modify the Syracuse configuration file itself like we usually do for an Apache Web server?

Will appreciate your help
Thank in advance

JPISTON

  • 0
    SUGGESTED

    Hi,

    You may be able to do this without touching the Syracuse files.


    All you have to do is disable port 8124 from the administration of the Syracuse web server.
    Then reuse this port as a second listening port from the Apache server already present on your solution.
    All you have to do then is manage the Apache redirection to your only remaining port on Syracuse: 443.

    Hoping that it meets your need.

    Regards,

    Laurent