GF 3.0.1 + Virtual Server: www.myhost.com:8080/projectname-war => www.myhost.com. How?
Posted
by
Harry Pham
on Server Fault
See other posts from Server Fault
or by Harry Pham
Published on 2011-01-06T17:40:25Z
Indexed on
2011/01/06
17:55 UTC
Read the original article
Hit count: 318
glassfish
I need to change www.myhost.com:8080/myproject-war
to www.myhost.com
. This is what I try. In admin console in Glassfish 3.0.1, I create a http-listener-3
with port 9090 and address 0.0.0.0 (I want to have port 80, but got access-denied or some sort). I then create a virtual server call scholar
, with Id=scholar
, Hosts=${com.sun.aas.hostName}
, Network Listeners: http-listener-3
, Default Web Module=project#project-war.war(it is the only option from the drop down list since I only deploy 1 app)
. Then under Applications
, I set the virtual server
of the application to be scholar
. Save and restart. I try localhost:9090, and expecting that it will load my project like as if I type localhost:9090/project-war
. But it does not. I already set the Default Web Module, to be the project, why doesnt it load the project by default?
© Server Fault or respective owner