users@glassfish.java.net

Re: need help with GlassFish install front-ended by Apache2 ...

From: <forums_at_java.net>
Date: Fri, 10 Feb 2012 09:32:13 -0600 (CST)

Hi,

did you setup http-vhosts.conf? If not, here is mine piece of apache config:

httpd.conf:

LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties

# Where to put jk logs
JkLogFile logs/mod_jk.log

# Set the jk log level [debug/error/info]
JkLogLevel debug

# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

# JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"
 

 

 

vhosts.conf:

NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
    DocumentRoot "/usr/local/apache2/htdocs"
    ServerName <your glassfish server>
    JkMount /* loadbalancer
</VirtualHost>

 

Cheers,

Jan

 


--
[Message sent by forum member 'jsavel']
View Post: http://forums.java.net/node/883417