User Tools

Site Tools



asadmin commands

Command asadmin + … Beschreibung
ÜbersichtOracle GlassFish Server 3.1: asadmin Utility Subcommands
list-application-refs Liefert die Namen der installierten/internen Applikationen
sinnvoll z.B. für undeploy

Glassfish behind Apache

Edit httpd.conf and restart apache. In this case, apache proxies /api calls to glassfish on port 8080 and the rest of the calls is delegated to a local node.js process running on port 8888.

LoadModule proxy_module modules/
LoadModule proxy_http_module modules/
LoadModule rewrite_module modules/
# disable use as forward proxy
ProxyRequests Off
# don't handle Via: headers - we don't care about them
ProxyVia Off
# no need to transport host name - not doing virtual hosting
ProxyPreserveHost Off
ProxyPass         /api/
ProxyPassReverse  /api/
ProxyPass         /
ProxyPassReverse  /
# If you get HTTP status code 502 (Bad Gateway), maybe this could help
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1

For the problem w/ status code 502, see also

java/glassfish.txt · Last modified: 2013/07/02 15:02 by hgoebl