Server Setup is laid out in the following pic:
For the sake of this discussion, let's assume we have these WAR applications deployed in Tomcat server (besides ROOT and manager default applications):
* users.war -> tomcat context /users
* webapp.war -> tomcat context /webapp
* discovery.war -> tomcat context /discovery
* bingo.war -> tomcat context /bingo
* clubs.war -> tomcat context /clubs
Just do a full reverse proxy from the Apache Server to the Tomcat Server (you could either use AJP or HTTP connectors for that purpose).
Apache Configuration will be something like this:
This is very easy to use and setup. It just takes to add these lines to a virtual host and done!
You could access the tomcat Applications to the following URLs:
The problem with this approach is:
a. You have access to ALL APPLICATIONS (even if you don't want to)
b. You have access to default applications (if they're not removed) such as Tomcat's ROOT and Manager.
Do one reverse proxy location for each application you want to expose. Let's say you want to expose `users`, `webapp` and `clubs`. Your configuration will be something like this:
The problem with this approach is obvious:
a. If you deployed 25 WARs in your tomcat and want to expose 18 of them, your Apache configuration will grow, and will become harder to maintain.
b. COPY+PASTE error might occur more frequently when adding new applications
c. If your Location sections contains more configuration options (RequestHeader directives, Require, Auth Type) then your COPY+PASTE gets bigger every time, and if you need to change/add something, you will need to do it in every single configuration you have done before.
My favorite option nowadays.
If you want the three same applications exposed, you can use LocationMatch and ProxyPassMatch directives to get the best of both previous options:
You use a regular expression to filter what domains will go through to tomcat server, and you keep it only in one configuration.
My first online casino solely best casino in which I played. Just want to highlight a very beautiful design and convenience and beauty in all games. The presence of public tables testifies first of all to casino honesty - nobody twists the roulette wheel specially - at least =).ReplyDelete
The effect on expenses related with diminished inventories is most articulated in enterprises where the item has a limited timeframe of realistic usability (for example bananas), is liable to quick mechanical out of date quality or value decreases (for example PCs), or where there is a fast progression of new items (for example books, music). prywatnoscwsieci.plReplyDelete
Thanks for the post...ReplyDelete
best salesforce training in hyderabad
full stack network engineer training
final year project
mini projects for cse
final year projects for cse
final year projects for cse students
final year projects for cse domains
final year projects for cse in data mining
final year projects for cse with source code
final year project for ece
final year project in mechanical engineering
final year project for eee
salesforce certification in hyderabad - it teaches salesforce courses with the latest version within less time. Thesalesforce training in hyderabad trains you on the core administrative features of CRM and prepares you to pass the two Salesforce exams.ReplyDelete
top 10 salesforce institues in hyderabad which offers the best training in best salesforce training institute in which you can choose an institute for salesforce training as per your requirements and your interest in which it can either be online or offlineReplyDelete