| Message: 82492 |
 |
BY: Aaron Reichman (areichman) DATE: 2009-06-11 18:49 SUBJECT: RE: Glassfish gem with Apache Virtual Host Before I read your reply I was actually just trying the -c option. :)
That did work. Since my Apache rewrite was trying to redirect everything from /myapp to Glassfish, I needed to tell Glassfish to start with /myapp as the root. Now all of the paths (links, CSS, etc.) work properly.
So in summary, here's my setup now:
http.conf:
<Proxy balancer://myapp>
BalancerMember http://127.0.0.1:8080
</Proxy>
<VirtualHost *.80>
...
RewriteRule ^/myapp(.*)$ balancer://myapp%{REQUEST_URI} [P,QSA,L]
</VirtualHost>
glassfish gem:
glassfish -e production -p 8080 -c "/myapp"
Thanks for your help!
-A | |