httpd.conf configuration for Webcenter

Below is the configuration that we used in our httpd.conf file on the web server. We were using apache 2.2.3 version

The configuration below is done to access following on the weblogic server:

  • Weblogic console: using http://test.3disystems.com/console
  • Enterprise manager: using http://test.3disystems.com/em
  • Portal Application: using http://test.3disystems.com/portal
  • Content Server: http://testcs.3disystems.com/cs
  • The internal ip address of the Weblogic server is 10.1.1.12
  • There are 2 virtual hosts created for the 2 sub domains – test.3disystems.com and testcs.3disystems.com
  • The ports for weblogic console and enterprise manager which are on the Admin Server are 7001
  • The ports for the Content Server Managed server on weblogic is 16200
  • The ports for portal application on the Managed server is 8891

*Before editing the httpd.conf you need to copy the mod_wl_22.so to /etc/httpd/modules

Sample httpd.conf

===============================================================

LoadModule weblogic_module modules/mod_wl_22.so

<VirtualHost *:80>
ServerName test.3disystems.com

<IfModule mod_weblogic.c>
WebLogicHost 10.1.1.12
WebLogicPort 7001
</IfModule>

<Location /console>
SetHandler weblogic-handler
WebLogicHost    10.1.1.12
WebLogicPort    7001

</Location>

<Location /em>
SetHandler weblogic-handler
WebLogicHost    10.1.1.12
WebLogicPort    7001
</Location>

<Location /portal>
SetHandler weblogic-handler
WebLogicHost    10.1.1.12
WebLogicPort  8891
</Location>

</VirtualHost>

<VirtualHost *:80>
ServerName testcs.3disystems.com

<IfModule mod_weblogic.c>
WebLogicHost 10.1.1.12
WebLogicPort 16200
</IfModule>

<Location />
SetHandler weblogic-handler
WebLogicHost    10.1.1.12
WebLogicPort   16200
</Location>

<Location /cs>
SetHandler weblogic-handler
WebLogicHost    10.1.1.12
WebLogicPort   16200
</Location>

<Location /adfAuthentication>
SetHandler weblogic-handler
WebLogicHost 10.1.1.12
WebLogicPort 16200
</Location>

</VirtualHost>

=================================================