On Thu, Sep 23, 2010 at 11:57 AM, <glassfish_at_javadesktop.org> wrote:
> My problem is what must I do in GF so that a user who types in http://www.mydomain,com gets sent to MY-APP which is at http://111.222.333.444:38080/MY_APP?
>
> The ":38080/MY-APP" is the part I am stuck on.
That's 2 parts :-)
1) You need to make MY-APP the default "/" context.
2) You need to make it available on port 80. There are multiple ways
of doing that:
* run GF as root so you can bind to port 80 (not recommended)
* start GF using something like jsvc/commons-daemon, again so
you can bind to port 80, but not run as root
* proxy port 80 to your 38080 using Squid, Apache httpd, nginx, etc.
* proxy port 80 to 38080 "natively" using iptables or equiv
HTH,
--
Hassan Schroeder ------------------------ hassan.schroeder_at_gmail.com
twitter: @hassan