Configuring SSL-protected views to be accessible through HTTP

Configuring SSL-protected views to be accessible through HTTP

<!-- TwoX body.doc --> <!-- BEGIN MAIN BODY CONTENT--> <!-- BEGIN CONTENT--> <!-- ******** PASTE MAIN BODY CONTENT HERE ******** -->
 Technote (FAQ)
 
Question
How do you configure SSL-protected views to be accessible through HTTP in WebSphere® Commerce 6.0?
 
Answer
To change a view originally accessible by HTTPS to be accessible through HTTP, follow the steps using LogonForm as an example, as indicated in the screen shot below:
Configuring SSL-protected views to be accessible through HTTP

1. You need to search for LogonForm in struts-config.xml (or the corresponding struts config file), and modify the configuration so that https property becomes 0:0 .
For example:

<action path="/LogonForm" type="com.ibm.commerce.struts.BaseAction">
<set-property property="https" value="0:1 "/>
</action>

should become:

<action path="/LogonForm" type="com.ibm.commerce.struts.BaseAction">
<set-property property="https" value="0:0"/>
</action>

2. You need to update the struts-config-ext.xml (or the corresponding struts config file) so that you remove your store ID or the whole configuration setting where the https property is defined for your view. For example:

<action path="/LogonForm" type="com.ibm.commerce.struts.BaseAction">
<set-property property="https" value="10001:1,10053:1,10054:1"/>
<set-property property="credentialsAccepted" value="0:P,0:P"/>
</action>

should become:

<action path="/LogonForm" type="com.ibm.commerce.struts.BaseAction">
<set-property property="credentialsAccepted" value="0:P,0:P"/>
</action>

3. Restart your WebSphere Commerce server. Your LogonForm should be accessible through HTTP as shown below:

Configuring SSL-protected views to be accessible through HTTP

你可能感兴趣的:(xml,struts,ext,IBM,websphere)