Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2 front-end orion !!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
YEL
n00b
n00b


Joined: 26 Mar 2004
Posts: 27
Location: Germany /Cologne

PostPosted: Mon Mar 29, 2004 11:51 pm    Post subject: Apache2 front-end orion !! Reply with quote

[color=darkred]hi everyone! :cry:
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 :cry:

thank you in advance for any :idea: or help!!

casaboy
_________________
Creativity is Allowing Ourself to Make Mistakes
And To Learn From Them

proud to be a gentootian
Back to top
View user's profile Send private message
andy
n00b
n00b


Joined: 08 Feb 2003
Posts: 16
Location: Pittsburgh, PA

PostPosted: Tue Mar 30, 2004 3:43 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum