DX Application Performance Management

Expand all | Collapse all

WebView URL redirection to different port

Jump to Best Answer
  • 1.  WebView URL redirection to different port

    Posted 07-26-2017 08:00 AM

    I am currently running wily environement with 10.5 and I see jetty 6.1 jar configuration on server. My webview portal is running on 8080 and I have configured SSL and webvew port changed to 8444.

     

    My question is, how can I redirect my webview users connecting on 8080 to 8444 port automatically. Is there any configuration on wily or jetty side to achieve it ?

     

    eg: http://example.com:8080 url redirect to https://example.com:8444

     

    Please advice.

    Thanks

    Bala



  • 2.  Re: WebView URL redirection to different port

    Posted 07-26-2017 08:10 AM

    Hi all:

    Is there another APM Customer/Administrator that can help Bala make the needed configuration change to get the correct port to work? Thanks in advance.

     

    Hal German 



  • 3.  Re: WebView URL redirection to different port

    Posted 07-26-2017 10:50 PM

    I did find these steps for jetty server http-> https redirection: Jetty/Howto/Configure SSL - Eclipsepedia 

    However I have not been able to get it to work 10.5.1 by making changes to the EM_HOME/configuration/org.eclipse.osgi/bundles/18/1/.cp/WebContent/WEB-INF/web.xml file and the webview-jetty-config.xml file.

    Either I have misconfigured or the steps are not valid for jetty server version 6.x APM is using



  • 4.  Re: WebView URL redirection to different port

    Posted 07-27-2017 08:45 AM

    Dear Bala:

     Please try the information in the link that Lynn provided above. Failing that, please open a case. Once a resolution is found please post the resolution here to help others that may have teh same question

     

    Thanks

    Hal German



  • 5.  Re: WebView URL redirection to different port

    Posted 07-31-2017 06:19 AM

    Hi,

     

    I have opened a case but they said they don't have resolution for this and asked me to post the request here.

     

    I also followed the same procedure and its not working as expected.



  • 6.  Re: WebView URL redirection to different port

    Posted 07-31-2017 06:46 AM

    You might alternatively set up a proxy, probably on the same WebView machine using NGINX

    https://www.nginx.com/resources/admin-guide/reverse-proxy/

     

    That would give flexibility on where you direct users initially, just make sure whatever listen port you give NGINX is not used by any other process.

     

    Beyond this, we might suggest you raise an idea about this so the required configuration to redirect HTTP requests to HTTPS is already in place in the Jetty configuration.



  • 7.  Re: WebView URL redirection to different port

    Posted 07-31-2017 10:08 AM

    Hi David,

     

    Thanks for the reply.

     

    I am new to NGINX. Can you help with the proxy setup on WILY.



  • 8.  Re: WebView URL redirection to different port
    Best Answer

    Posted 03-07-2018 07:18 PM

    I have been able to get this to work by installing an Apache HTTP Web Server, running it on port 8080 and using the steps here to redirect all requests to my WebView HTTPS Jetty Web server running on mywebviewserver under port 8443:

    Redirect fom Apache HTTP server to Jetty · CodeRevisited 

    My httpd-vhosts.conf file contains:

    ===

    <VirtualHost *:8080>
        DocumentRoot "C:/Apache24/htdocs"
        ErrorLog logs/webview_redirect_error.log
        CustomLog logs/webview_redirect_access.log combined
        LogLevel error
        <Directory "C:/Apache24/htdocs">
            Options MultiViews FollowSymLinks
            AllowOverride all
            Require all granted
        </Directory>
        RewriteEngine On
        RewriteRule "^/(.*)" "https://mywebviewserver:8443/"
    </VirtualHost>

    ===

    Full Apache httpd.conf & httpd-vhosts.conf files attached

    Attachment(s)

    zip
    httpd.conf.zip   6K 1 version
    zip
    httpd-vhosts.conf.zip   1K 1 version


  • 9.  Re: WebView URL redirection to different port

    Posted 03-08-2018 12:03 AM