Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread
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


Thread View

Thread Author Date
Glassfish gem with Apache Virtual HostAaron Reichman2009-06-11 16:20
      RE: Glassfish gem with Apache Virtual HostArun Gupta2009-06-11 16:25
            RE: Glassfish gem with Apache Virtual HostAaron Reichman2009-06-11 16:38
                  RE: Glassfish gem with Apache Virtual HostVivek Pandey2009-06-11 16:52
                        RE: Glassfish gem with Apache Virtual HostArun Gupta2009-06-11 17:53
                        RE: Glassfish gem with Apache Virtual HostAaron Reichman2009-06-11 18:25
                              RE: Glassfish gem with Apache Virtual HostVivek Pandey2009-06-11 18:34
                                    RE: Glassfish gem with Apache Virtual HostAaron Reichman2009-06-11 18:49
                                          RE: Glassfish gem with Apache Virtual HostVivek Pandey2009-06-11 18:55
                                          RE: Glassfish gem with Apache Virtual HostArun Gupta2009-06-11 18:52
                                                RE: Glassfish gem with Apache Virtual HostVivek Pandey2009-06-11 18:57
                                                      RE: Glassfish gem with Apache Virtual HostAaron Reichman2009-06-11 19:27
                                                            RE: Glassfish gem with Apache Virtual HostVivek Pandey2009-06-11 23:07

Post a followup to this message