Contained WithinFind More DocumentationFeatured Support Resources | PDF로 이 문서 다운로드 (531 KB)
Chapter 5 Configuring After the InstallationThis chapter contains the following: OverviewThe Sun Java System Portal Server 7 software can be installed using the installer in one of the two modes: the config now mode, where installation and configuration take place simultaneously, or the config later mode, which requires you to run the PortalServer7-base/bin/psconfig --config config-xml-file command after installing the software. By default, PortalServer7–base is /opt/SUNWportal. This chapter describes how to use the sample configuration XML file or construct a configuration XML file for the desired portal set up. A basic understanding of the structure of XML is required to construct a custom configuration file. Using the Sample Configuration XML FileThe Sun Java System Portal Server software includes twenty sample configuration XML files at:
Note – The location of the files depend on the install location. If portal is installed in a non-default location, these locations vary. The PortalServer7-base/samples/psconfig/ReadMe.txt file describes each example file. By default the PortalServer7–base is /opt/SUNWportal. Read through this file to see which configuration example best suits your set up and replace the @TAGS@ (marked by @...@) after reviewing the default values specified in the example file. Create the required configuration XML file for the desired portal setup by modifying a selected configuration example. Any of the configuration examples for the Web Server container can be adapted for Sun Java System Application Server by replacing the <WebContainerProperties> element section and the @TAGS@ tokens after reviewing the default values. For example:
Multi portal configurations (see example 15) can be customized by:
Constructing a Configuration XML FileIf the sample configuration file does not suit your desired setup and if a custom configuration XML file is to be constructed, follow the instructions in this section. In order to set up your custom configuration file, you must:
Required ConfigurationThis section describes the overall Portal Server, header/footer, shared components, and the Access Manager elements in the configuration file. See example2.xml file. For Solaris on SPARC and x86<?xml version = "1.0" encoding = "UTF-8"?>
<PortalServerConfiguration xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"file:///opt/SUNWportal/lib/psconfig.xsd" SchemaVersion="1.0">
<Configure ConfigurationHostName=
"@HOST.DOMAIN@" SystemUser="root" SystemGroup="other" Validate="true">
<SharedComponents
JavaHome="/usr/jdk/entsys-j2se"
CacaoProdDir="/opt/SUNWcacao"
CacaoConfigDir="/etc/opt/SUNWcacao"
SharedLibDir="/usr/share/lib"
PrivateLibDir="/usr/share/lib"
JDMKLibDir="/opt/SUNWjdmk/5.1/lib"
NSSLibDir="/usr/lib/mps/secv1"
JSSJarDir="/usr/share/lib/mps/secv1"
WebNFSLibDir="/opt/SUNWebnfs"
DerbyLibDir="/usr/share/lib/Derby"
AntLibDir="/usr/sfw/lib/ant"
AntHomeDir="/usr/sfw"
RegistryLibDir="/opt/SUNWsoar/lib"
/>
<AccessManager>
<InstallationDirectory
ProdDir="/opt/SUNWam"
DataDir="/var/opt/SUNWam"
ConfigDir="/etc/opt/SUNWam/config"
ConfigFile="AMConfig.properties"
/>
<UserCredentials
AdministratorUID="amadmin"
AdministratorUserPassword="@AMADMIN.PASSWORD@"
LDAPUserId="amldapuser"
LDAPUserIdPassword="@AMLDAPUSER.PASSWORD@"
DirectoryManagerDn="cn=Directory Manager"
DirectoryManagerPassword="@DIRMGR.PASSWORD@"/>
</AccessManager>
<PortalConfiguration>
<InstallationDirectory
ProdDir="/opt/SUNWportal"
DataDir="/var/opt/SUNWportal"
ConfigDir="/etc/opt/SUNWportal"/>
<ComponentsToConfigure>
.
.
.
</ComponentsToConfigure>
.
.
.
</PortalConfiguration>
.
.
.
</Configure>
</PortalServerConfiguration>
For Linux<?xml version = "1.0" encoding = "UTF-8"?>
<PortalServerConfiguration xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"file:///opt/sun/portal/lib/psconfig.xsd" SchemaVersion="1.0">
<Configure ConfigurationHostName=
"@HOST.DOMAIN@" SystemUser="root" SystemGroup="other" Validate="true">
<SharedComponents
JavaHome="/usr/jdk/entsys-j2se"
CacaoProdDir="/opt/sun/cacao"
CacaoConfigDir="/etc/opt/sun/cacao"
SharedLibDir="/opt/sun/share/lib"
PrivateLibDir="/opt/sun/private/share/lib"
JDMKLibDir="/opt/sun/jdmk/5.1/lib"
NSSLibDir="/opt/sun/private/lib"
JSSJarDir="/opt/sun/private/share/lib"
WebNFSLibDir="/opt/sun/webnfs"
DerbyLibDir="/opt/sun/share/lib/Derby"
AntHomeDir="/opt/sun/share"
AntLibDir="/opt/sun/share/lib"
RegistryLibDir="/opt/sun/SUNWsoar/lib"
/>
<AccessManager>
<InstallationDirectory
ProdDir="/opt/sun/identity"
DataDir="/var/opt/sun/identity"
ConfigDir="/etc/opt/sun/identity/config"
ConfigFile="AMConfig.properties"
/>
<UserCredentials
AdministratorUID="amadmin"
AdministratorUserPassword="@AMADMIN.PASSWORD@"
LDAPUserId="amldapuser"
LDAPUserIdPassword="@AMLDAPUSER.PASSWORD@"
DirectoryManagerDn="cn=Directory Manager"
DirectoryManagerPassword="@DIRMGR.PASSWORD@"/>
</AccessManager>
<PortalConfiguration>
<InstallationDirectory
ProdDir="/opt/sun/portal"
DataDir="/var/opt/sun/portal"
ConfigDir="/etc/opt/sun/portal"/>
<ComponentsToConfigure>
.
.
.
</ComponentsToConfigure>
.
.
.
</PortalConfiguration>
.
.
.
</Configure>
</PortalServerConfiguration>
Tokens to Replace
Values to Modify
Portal Server ConfigurationDifferent Portal Server components that can be installed and configured across different nodes include the core Portal Server, Secure Remote Access (SRA), Gateway, Netlet Proxy, and Rewriter Proxy. Depending on which components are configured on this host, the <ComponentsToConfigure> element can be constructed. If all components are to be configured this host, include the following: <ComponentsToConfigure> <component>portalserver</component> <component>sracore</component> <component>gateway</component> <component>netletproxy</component> <component>rewriterproxy</component> </ComponentsToConfigure> To exclude components, remove the corresponding <component> element. Basic Portal ConfigurationXML Fragment<PortalConfiguration> <PortalServer PortalAccessURL="http://@HOST.DOMAIN@:@PORT@/portal" PortalID="portal1" PortalWebappURI="/portal" SearchServerID="search1"> <Instance InstanceID="myInstance"> <WebContainerProperties . . . /> </Instance> </PortalServer> </PortalConfiguration> Tokens to Replace
Values to Modify
Sample Portal ConfigurationPortal Server software supports three types of sample portals: the Developer Sample, Enterprise Sample, and Community Sample. Each of these samples are created under its own sub-org for ease of management. Configuring any or all of these samples is supported. <PortalConfiguration> <PortalServer . . . > <SamplePortal> <Sample Name="DeveloperPortal"/> <Sample Name="EnterprisePortal"/> <Sample Name="CommunityPortal"/> </SamplePortal> . . . </PortalServer> </PortalConfiguration> Web Container ConfigurationThe Web container configuration varies with the container to be configured. In the configuration XML file, there is one <WebContainerProperties> element specified for the web container under the <PortalServer><Instance> element and one under the <SearchServer> element. Sun Java System Web Server ConfigurationTip – See example1.xml, examples 3 to 9, and example13.xml files. XML Fragment For Solaris on SPARC and x86<WebContainerProperties Host="@HOST.DOMAIN@" Port="@PORT@" Scheme="http" WebContainerInstallDir="/opt/SUNWwbsvr" WebContainerInstanceName="@INSTANCENAME@" WebContainerInstanceDir="/opt/SUNWwbsvr/https-@INSTANCENAME@" WebContainerDocRoot="/opt/SUNWwbsvr/docs" WebContainerAdminHost="" WebContainerAdminPort="@ADMIN.PORT@" WebContainerAdminScheme="http" WebContainerAdminUid="admin" WebContainerAdminPassword="@PASSWORD@" WebContainerCertificateDBPassword="" WebContainerType="SJSWS6" /> For Linux<WebContainerProperties Host="@HOST.DOMAIN@" Port="@PORT@" Scheme="http" WebContainerInstallDir="/opt/sun/webserver" WebContainerInstanceName="@INSTANCENAME@" WebContainerInstanceDir="/opt/sun/webserver/https-@INSTANCENAME@" WebContainerDocRoot="/opt/sun/webserver/docs" WebContainerAdminHost="" WebContainerAdminPort="@ADMIN.PORT@" WebContainerAdminScheme="http" WebContainerAdminUid="admin" WebContainerAdminPassword="@PASSWORD@" WebContainerCertificateDBPassword="" WebContainerType="SJSWS6" /> Tokens to Replace
Values to Modify
Sun Java System Application Server ConfigurationTip – See example14.xml file. XML Fragment For Solaris on SPARC and x86<WebContainerProperties Host="@HOST.DOMAIN@" Port="@PORT@" Scheme="http" WebContainerInstallDir="/opt/SUNWappserver/appserver" WebContainerInstanceName="server" WebContainerDomainName="domain1" WebContainerInstanceDir="/var/opt/SUNWappserver/domains/domain1" WebContainerDocRoot="/var/opt/SUNWappserver/domains/domain1/docroot" WebContainerAdminHost="@HOST.DOMAIN@" WebContainerAdminPort="@ADMIN.PORT@" WebContainerAdminScheme="https" WebContainerAdminUid="admin" WebContainerAdminPassword="@PASSWORD@" WebContainerMasterPassword="@MASTER.PASSWORD@" WebContainerType="SJSAS81" /> XML Fragment For Linux<WebContainerProperties Host="@HOST.DOMAIN@" Port="@PORT@" Scheme="http" WebContainerInstallDir="/opt/sun/appserver" WebContainerInstanceName="server" WebContainerDomainName="domain1" WebContainerInstanceDir="/var/opt/sun/appserver/domains/domain1" WebContainerDocRoot="/var/opt/sun/appserver/domains/domain1/docroot" WebContainerAdminHost="@HOST.DOMAIN@" WebContainerAdminPort="@ADMIN.PORT@" WebContainerAdminScheme="https" WebContainerAdminUid="admin" WebContainerAdminPassword="@PASSWORD@" WebContainerMasterPassword="@MASTER.PASSWORD@" WebContainerType="SJSAS81" /> Tokens to Replace
Values to Modify
Search Server ConfigurationThe Search Server is deployed to a specific web container instance which is defined by a <WebContainerProperties> element. Multiple Search servers can be specified by having multiple <SearchServer> elements within a <PortalConfiguration> section, each with a unique ID. A Portal may be associated with a specific search server by specifying the SearchServerID attribute within the <PortalServer> element. <PortalConfiguration> <SearchServer SearchServerID="search1"> <WebContainerProperties . . . /> </SearchServer> <PortalServer SearchServerID="search1"> . . . </PortalServer> </PortalConfiguration> Secure Remote Access ConfigurationThe SRA core component can only be installed and configured on the same node as the portal server component. Further the portal server and SRA core components have to be configured at the same time. That is, the SRA core component cannot be configured on a host that already has an existing portal server. XML FragmentSecure remote access support can be added to portal be adding the <component>sracore</component> to the <ComponentsToConfigure> section. In addition add the following section to the <PortalConfiguration> section: <PortalConfiguration> . . . <SecureRemoteAccessCore GatewayProtocol="https" PortalServerDomain="@DOMAIN@" GatewayPort="@GATEWAY.PORT@" GatewayProfileName="default" LogUserPassword="@SRA.LOGUSER.PASSWORD@"/> </PortalConfiguration> Tokens to Replace
Values to Modify
Gateway ConfigurationTip – See example10.xml file. XML Fragment<ComponentsToConfigure> <component>gateway</component> </ComponentsToConfigure> <PortalServer PortalAccessURL="http://@PSHOST.DOMAIN@:@PORT@/portal"> </PortalServer> <Gateway Profile="default"> <SRAInstance Protocol="https" Host="@HOST.DOMAIN@" Port="@GATEWAY.PORT@" IPAddress="@IPADDRESS@" LogUserPassword="@SRA.LOGUSER.PASSWORD@" StartInstance="true"/> </Gateway> <CertificateInformation Organization="Sun Microsystems" Division="Software" CityOrLocality="Santa Clara" StateProvince="CA" CountryCode="US" CertificateDatabasePassword="@SRA.CERTDB.PASSWORD@"/> Tokens to Replace
Values to Modify
Netlet Proxy ConfigurationTip – See example11.xml file. XML Fragment<ComponentsToConfigure> <component>netletproxycomponent>netletproxy> </ComponentsToConfigure> <PortalServer PortalAccessURL="http://@PSHOST.DOMAIN@:@PORT@/portal"> </PortalServer> <NetletProxy Profile="default"> <SRAInstance Protocol="https" Host="@HOST.DOMAIN@" Port="@NETLET.PROXY.PORT@" IPAddress="@IPADDRESS@" LogUserPassword="@SRA.LOGUSER.PASSWORD@" StartInstance="true"/> </NetletProxy> <CertificateInformation Organization="Sun Microsystems" Division="Software" CityOrLocality="Santa Clara" StateProvince="CA" CountryCode="US" CertificateDatabasePassword="@SRA.CERTDB.PASSWORD@"/> Tokens to Replace
Values to Modify
Rewriter Proxy ConfigurationTip – See example12.xml file. XML Fragment<ComponentsToConfigure> <component>rewriterproxycomponent>rewriterproxy> </ComponentsToConfigure> <PortalServer PortalAccessURL="http://@PSHOST.DOMAIN@:@PORT@/portal"> </PortalServer> <RewriterProxy Profile="default"> <SRAInstance Protocol="https" Host="@HOST.DOMAIN@" Port="@REWRITER.PROXY.PORT@" IPAddress="@IPADDRESS@" LogUserPassword="@SRA.LOGUSER.PASSWORD@" StartInstance="true"/> </RewriterProxy> <CertificateInformation Organization="Sun Microsystems" Division="Software" CityOrLocality="Santa Clara" StateProvince="CA" CountryCode="US" CertificateDatabasePassword="@SRA.CERTDB.PASSWORD@"/> Tokens to Replace
Values to Modify
Establishing Trust Between Cacao ServersThe following instructions detail how to share a common certificate between two cacao servers.
|
||||||||||||