users@glassfish.java.net

Re: Running GlassFish with Apache httpd

From: <glassfish_at_javadesktop.org>
Date: Wed, 19 Sep 2007 17:22:04 PDT

ITS ALIVE...

http://www.market-si.com/index.jsp
<VirtualHost *>
    ServerName www.market-si.com
   DocumentRoot /opt/domain1/docroot/
    ProxyPass / http://www.market-si.com:8080/
    ProxyPassReverse / http://www.market-si.com:8080/
</VirtualHost>


http://blog.market-si.com/
<VirtualHost *>
    ServerName www.blog.market-si.com
    ServerAlias blog.market-si.com
    DocumentRoot /opt/domain1/docroot/
    ProxyPass / http://www.blog.market-si.com:8080/
    ProxyPassReverse / http://www.blog.market-si.com:8080/
</VirtualHost>


i followed my ubuntu forums and i modified httpd.conf (i am jkmount the context roots)



LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
JkWorkersFile /etc/apache2/worker.properties
# Where to put jk logs
JkLogFile /var/log/apache2/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"
# Send all jsp requests to GlassFish
JkMount /*.jsp worker1
# Send all glassfish-test requests to GlassFish
JkMount /hello/* worker1
JkMount /blog/* worker1

the proxy error i was getting are because glassfish cannot handle pebble anymore... It was working before i started adding jars and modifying the httpd conf file.... Any thoughts? Also blows up roller, i tried installing both files from a blog...
[Message sent by forum member 'huggy77' (huggy77)]

http://forums.java.net/jive/thread.jspa?messageID=236113