Page 1 of 1

Alias for WebStart URL

PostPosted: Thu May 10, 2012 2:34 pm
by Robert Huber
Hi

I am looking for a way to replace the WebStart call for the client by an alias, i. e. replacing
http://<ip-address>:<port-no>/servoy-client/<application-name>.jnlp by a shorter alias like for example <application-name>

How can this redirect be done?

Regards, Robert

Re: Alias for WebStart URL

PostPosted: Fri May 11, 2012 12:57 am
by mboegem
Hi Robert,

on windows you could create a windows shortcut.
in the location type: javaws http://<ip-address>:<port-no>/servoy-client/<application-name>.jnlp

rename it and you're all set and done.

Re: Alias for WebStart URL

PostPosted: Fri May 11, 2012 8:23 am
by Harjo
or place an html in your server ROOT folder, like: login.html

and than do: http://<ip-address>:<port-no>/login.html

Code: Select all
<html>
<head>
<META HTTP-EQUIV=Refresh CONTENT="0; URL=/servoy-client/<aplication-name>.jnlp">
</head>
<body>
<span style="display:none">servoy-client</span>
</body>
</html>

Re: Alias for WebStart URL

PostPosted: Fri May 11, 2012 5:52 pm
by david
For anything that is not quick and dirty we put Servoy web client solutions in an iframe, use url rewrites (http://www.tuckey.org/urlrewrite/) and often have an apache/mod_rewrite server in front of servoy server.

Re: Alias for WebStart URL

PostPosted: Mon May 14, 2012 5:09 pm
by Robert Huber
Hi All

Thanks a lot all of you for sharing your ideas and code. I tried Harjos solution, as I like to have it for all users on one place (in this case the Web Server ROOT folder). The only missing puzzle part is how to avoid entering the port-no in the URL. There must be a way to just enter something like http://<domain-name>/<application-name>? I tried putting the port into the login.html file (Harjos post), but could not get it to work. Any idea?

Best regards, Robert

Re: Alias for WebStart URL

PostPosted: Mon May 14, 2012 5:18 pm
by grahamg
Robert

We setup a sub-domain and then use Domain forwarding.

So client.worxinfo.com is forwarded to ServerURL:8080/servoy-webclient/ss/s/ClientApp

This will not work for everyone as some organisations have policies that prevent re-directs so it does depend on your client.

Re: Alias for WebStart URL

PostPosted: Mon May 14, 2012 5:21 pm
by david
Robert Huber wrote:Hi All

Thanks a lot all of you for sharing your ideas and code. I tried Harjos solution, as I like to have it for all users on one place (in this case the Web Server ROOT folder). The only missing puzzle part is how to avoid entering the port-no in the URL. There must be a way to just enter something like http://<domain-name>/<application-name>? I tried putting the port into the login.html file (Harjos post), but could not get it to work. Any idea?

Best regards, Robert


Refer to my answer above. All of them mask the port number.

You're in web server land now. A few extra skills are needed to get out of basic-mode deployment.

Re: Alias for WebStart URL

PostPosted: Mon May 14, 2012 5:40 pm
by Robert Huber
Graham

What record type are you using for domain forwarding where you can enter the whole string? I was looking for that but didn't find an appropriate one.

Regards, Robert

grahamg wrote:Robert

We setup a sub-domain and then use Domain forwarding.

So client.worxinfo.com is forwarded to ServerURL:8080/servoy-webclient/ss/s/ClientApp

This will not work for everyone as some organisations have policies that prevent re-directs so it does depend on your client.

Re: Alias for WebStart URL

PostPosted: Mon May 14, 2012 5:42 pm
by Robert Huber
David

You are right, so I try to build up the needed knowledge, but I am also looking for the least complicated way :-) I looked at your proposal but it seemed more than I need, but also possible I missed the point :-(

Regards, Robert

david wrote:
Robert Huber wrote:Hi All

Thanks a lot all of you for sharing your ideas and code. I tried Harjos solution, as I like to have it for all users on one place (in this case the Web Server ROOT folder). The only missing puzzle part is how to avoid entering the port-no in the URL. There must be a way to just enter something like http://<domain-name>/<application-name>? I tried putting the port into the login.html file (Harjos post), but could not get it to work. Any idea?

Best regards, Robert


Refer to my answer above. All of them mask the port number.

You're in web server land now. A few extra skills are needed to get out of basic-mode deployment.

Re: Alias for WebStart URL

PostPosted: Mon May 14, 2012 5:49 pm
by david
Robert Huber wrote:...but I am also looking for the least complicated way :-)


I'm always a fan of least complicated :) Trade off is that URL rewrites gives you 100,000x's more flexibility than any forwarding technique does.

If all you're trying to do now is get rid of the port, can you run Servoy server with tunneling on?

Re: Alias for WebStart URL

PostPosted: Mon May 14, 2012 5:56 pm
by grahamg
Robert

We are using 1and1 hosting for this particular project and they have an option to enter the full URL string. We also use Easily.co.uk but they do not have the full string option.

You could also look at Port 80 Virtual Host setup. I have multiple Servoy Servers hosted with Harjo/Direct ICT (brilliant service :D ) and we have all Clients going in through Port 80 then being re-directed through a httpd-vhosts.conf file. That means we can just send out URLs like clienta.worxinfo.com, clientb.worxinfo.com and use the vhosts file to redirect them to the correct Servoy Server without exposing the actual Port numbers.

Regards

Re: Alias for WebStart URL

PostPosted: Mon May 14, 2012 6:21 pm
by Robert Huber
Thanks a lot, Graham, for your descriptions, will dig in further :-) Regards, Robert

grahamg wrote:Robert

We are using 1and1 hosting for this particular project and they have an option to enter the full URL string. We also use Easily.co.uk but they do not have the full string option.

You could also look at Port 80 Virtual Host setup. I have multiple Servoy Servers hosted with Harjo/Direct ICT (brilliant service :D ) and we have all Clients going in through Port 80 then being re-directed through a httpd-vhosts.conf file. That means we can just send out URLs like clienta.worxinfo.com, clientb.worxinfo.com and use the vhosts file to redirect them to the correct Servoy Server without exposing the actual Port numbers.

Regards

Re: Alias for WebStart URL

PostPosted: Fri May 25, 2012 3:01 pm
by Gordon McLean
On a similar subject is there a way to do this for smart clients ?? Someone just asked me if they could embed a link from their intranet to a Servoy smart client and all I can find is the full blown link to the server. What we are looking for is a link to the local install of Servoy smart client on a windows XP or 7 machine. Initial thoughts were yes simply you ....... BUT having looked its either staring me in the face or its not that straight forward - ideas welcome !

As for Web client URL ReWite would seem favorite !!

Cheers
Gordon