GF 3.0.1 + Virtual server: www.myhost.com:8080/projectname-war => www.myhost.com. How?

EDIT

I need to change www.myhost.com:8080/myproject-warto www.myhost.com. Here is what I tried:

I am configuring Virtual Server: server. I still have default network listeners - http-listener-1 and http-listner-2. I change the default web module to ScholarActive#ScholarActive-war.war(the only option in the drop-down list, since I use only one application).

For docroot, I try this

${com.sun.aas.instanceRoot}/applications/ScholarActive/ScholarActive-war_war

or

${com.sun.aas.instanceRoot}/applications/ScholarActive/

Both do not work. What should docroot refer to for this to work?

: localhost: 8080/ScholarActive-war, , , locahost: 8080, , , 80. . ?

+3
5

, GlassFish root, domain.xml, 8080 80.

( ), apache. glassfish v2, v3 apahce httpd.

iptables 80 8080 :

iptables -t nat -A OUTPUT -o lo -p tcp --dport 80 -j REDIRECT --to-port 8080 

- , "/". . -, - , . :

asadmin deploy --contextroot "/" webapp.war

sun-web.xml /.

- , , - - 4848. .


: - , Glassfish (localhost: 4848), goto:

Configuration -> Virtual Servers -> server

"- ". -. URL. , , , . , webapp " "/"


mod_proxy apache httpd "/" 80 "/myWebApp" 8080. .

+6

- /myproject -war , 8080 80. -, - http://localhost/, http://www.myhost.com www.myhost.com 127.0.0.1 hosts. -.

0

, - Glassfish tomcat tomcat, - ROOT.WAR, , . - ROOT.war , , , .


, , web.xml, . , , . , , , , .

0

tomcat/jboss/ apache mod_proxy mod_jk. , apache 80/443 j2ee 8080/8443 ( 8009 mod_jk).

0

.

http://blogs.oracle.com/alexismp/entry/glassfish_tip_have_your_application

However, my security authentication jdbcRealm, right after logging in, glassfish automatically adds my project warfare to my URL. So

www.myhost.com will prompt me to log in

immediately after entering the system, he became

www.myhost.com/my-project-war

why?

0
source

Source: https://habr.com/ru/post/1783545/


All Articles