View previous topic :: View next topic |
Author |
Message |
YEL n00b
Joined: 26 Mar 2004 Posts: 27 Location: Germany /Cologne
|
Posted: Mon Mar 29, 2004 11:51 pm Post subject: Apache2 front-end orion !! |
|
|
[color=darkred]hi everyone!
i have apache2.0.49 and orion-2.0.1 running on my gentoo box and would like to use apache2 as a front-end to orion so that orion handels JSP and i ll be glad if anyone of you boys out there who have allready made this could give me some help (a kind of howto) or even some necessary config files from apache and orion its been 4 days am googling and still did not found something i could understand
thank you in advance for any or help!!
casaboy _________________ Creativity is Allowing Ourself to Make Mistakes
And To Learn From Them
proud to be a gentootian |
|
Back to top |
|
|
andy n00b
Joined: 08 Feb 2003 Posts: 16 Location: Pittsburgh, PA
|
Posted: Tue Mar 30, 2004 3:43 am Post subject: |
|
|
You should be able to handle this with a simple mod_proxy setup, similar to how you would run Apache2 on top of Apache1. This should work with any web server running behind Apache 1 or 2.
Run Apache2 on port 80 like normal. Run Orion on localhost port 7080 (or anything else). If you want people to also be able to access it directly, don't run it on localhost.
Setup Orion however you need to so it can handle the virtual host you are using. I have no experience with Orion so I can't help with this part.
In your Apache2 VirtualHost, add the following:
Code: |
ProxyPassReverse / http://localhost:7080/
RewriteOptions inherit
RewriteRule ^/(.*)\.jsp$ http://localhost:7080/$1.jsp [proxy]
|
The ProxyPassReverse line rewrites URL's that come back from Orion so they contain the proper URL's and not "localhost". The RewriteRule proxies any *.jsp request to the backend Orion server at http://localhost:7080/*.jsp |
|
Back to top |
|
|
|