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
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.
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
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
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.
You might alternatively set up a proxy, probably on the same WebView machine using NGINX
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.
Thanks for the reply.
I am new to NGINX. Can you help with the proxy setup on WILY.
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
New KB article also created:
Redirecting unsecure WebView requests to the secur - CA Knowledge