Windows 2-3 Tier Architecture Conversion
Here is how we can convert your asp.net or any other IIS server hosted web application from DB and APP layer to DB, APP and Web Layer using Oracle Corporation's Oracle HTTP Server (OHS).
Introduction
If you have been working with IIS based applications wherein you host your website/multiple web applications in the same website on IIS and want to make it more secure by adding a third layer for the web. The solution is pretty much directly available over the plate from this page.
Process
There is no need to create a Web Portal containing only wrapper calls to the APP server where all your business logic lies in the form of API based application. You can create a robust application with direct DB calls hosted on the APP server and then showcase the same application without any coding expertise to a Web Layer. And then every end user will be using the web interface only without any direct access to the App Layer making it shielded by your web layer.
What makes it more secure is that you can change the communication ports between the WEB and APP layer to some non-standard port service number which will again make it difficult to directly access the APP/DB layer from the Web Layer.
Step wise Step activities!
So, how do we make it possible. You may follow the given below steps for the same:
Step 1. You host your IIS based Application over the APP layer. How do you do it.
You create a Folder on your APP server. Put down the published ASP.NET, ASP.NET MVC or PHP or any application hostable on IIS there. Then you go to INETMGR (IIS Manager Application on your windows server) and Create a Website for e.g. AppLayer
This AppLayer website's virtual path on the IIS server will be / (root).
Then you host your web application within this AppLayer website by create multiple child folders as in picture below where your actual WebApplication/APIs lies:
Step 2. You need to Install OHS on a Web Layer Server. The installation guide and the latest installation setup is available from the Oracle Official Site as Oracle Web Tier - Downloads.
Step 3. After you install the OHS, move to the OHS instance folder i.e. ohs1 and then modify the mod_wl_ohs.conf file in any text editor which is located in below location:
DOMAIN_HOME/config/fmwconfig/components/OHS/instances/componentName
<Location /MyApps>
WLSRequest On
WebLogicCluster 10.X.X.X:8001 #My Web App Server Internal Pat
WLProxySSL On
WLProxySSLPassThrough ON
#DefaultFileName index.jsp
</Location>
Step 4. Now from your Web Layer, access the website 10.x.x.x:8001 as
First Web Portal as
https://webLayer.in/MyApps/WebApp1
and
Second Web Portal as
https://webLayer.in/MyApps/WebApp2
P.S. https://webLayer.in is the domain name for the OHS(Web Layer Server)
Comments
Post a Comment
Provide your valuable feedback, we would love to hear from you!! Follow our WhatsApp Channel at
https://whatsapp.com/channel/0029VaKapP65a23urLOUs40y