Set Up the Web Config

 

Content
  1. Open the Web.Config File for Editing

  2. Customize the Store Encrypt Key

  3. Customize the Store System Globalization

  4. Customize the Store Sign-In Behavior

  5. Set Up Admin Site Login Settings

  6. Set Up Admin Site Security

  7. Add Custom Extensions to Use for XML Packages

  8. Set Up Site Download Configuration


The web.config file is an XML-formatted file where the eCommerce system settings are defined. It defines the behavior and characteristics of the store site. Since it is an XML file, you can use any text editor to make modifications to the web.config file.

 

Be careful in making modifications to the Web.Config file. Any error caused by modifying the setup may result to the store crashing or not functioning properly. It is recommended to make a backup copy of the web.config file before editing for data recovery in case something goes wrong.

 

 

 

Open the Web.Config File for Editing

To open the web.config file,

  1. Go to the installation directory of eCommerce and open the Web folder.

  2. Select the web.config file.

  3. Right Click on the web.config file and select Open With then Notepad option. This opens the web.config file in the Notepad utility.

    Click Image to Enlarge

    You can also use any other text editor aside from Notepad to open the web.config file.

Back to Top

Customize the Store Encrypt Key

To customize the encrypt key of the store,

  1. Search for the keyword “EncryptKey” using the Notepad’s auto search facility.

    Click Image to Enlarge


  2. By default this parameter is set to a specific code. You can change this code to personalize your store. Just replace the currently specified EncryptKey value with a new value.

  3. Save your new setting.

    Back to Top

Customize the Store System Globalization

To set the globalization settings of the application,

  1. Search for the keyword “globalization” using the Notepad’s auto search facility.

    Click Image to Enlarge


  2. Set the coding standards to use for the system on the RequestEncoding and ResponseEncoding parameters.

    The default is UTF-8 which is the widely used standard in most systems. Common variations for this value include UTF-16 and UTF-32.

  3. The locale to use for the system that determines its language, currency, and measurement standard is entered to the Culture and uiCultureparameters. The default en-US indicates the use of the United States English standard locale.

  4. Save your new setting.

Back to Top

Customize the Store Sign-In Behavior

To set the sign-in behavior of the store,

  1. Search for the keyword “SIGNIN” using the Notepad’s auto search facility.

    Click Image to Enlarge


  2. This section is where the sign-in behavior of the store is specified. You can change this and override the default authentication scheme of the store site since it uses a different credential for forms authentication for the admin pages.

  3. After making the changes, save your setting.

Back to Top

Set Up Admin Site Login Settings

To set up the admin site login settings,

  1. Search for the keyword “ADMINAUTH” using the Notepad’s auto search facility.

    Click Image to Enlarge

  2. This area is where the setting of the admin site login activity is specified and where the following parameters can be set:
    • LoginUrl - the URL where the user will be redirected if not authenticated.

    • DefaultUrl - the default admin page

    • (Qualifiers) Add Value - the pattern by which pages are restricted.

  3. The locale to use for the system that determines its language, currency, and measurement standard is entered to the Culture and uiCulture parameters. The default en-US indicates the use of the United States English standard locale.

  4. Save your new setting.

Back to Top

Set Up Admin Site Security

To set the admin site security,

  1. Search for the keyword “HTTPMODULE” using the Notepad’s auto search facility.

    Click Image to Enlarge


  2. This portion of the web.config file is where the admin security is implemented.

  3. Save your new setting.

Back to Top

Add Custom Extensions to Use for XML Packages

To add custom extensions,

  1. Search for the “DEFAULTEXTENSION” keyword using the Notepad’s auto search facility.

    Click Image to Enlarge


  2. This code segment allows you to add custom extensions that you can use in your XML packages.

  3. Save your new setting.

Back to Top

Set Up Site Download Configuration


To set up the site download configuration,

  1. Search for the “HTTPHANDLER” keyword using the Notepad’s auto search facility.

    Click Image to Enlarge


  2. This maps incoming download requests to the appropriate HttpHandler or HttpHandlerFactory class, according to the URL and the HTTP verb specified in the request.

  3. Save your new setting.

Back to Top

 

 

  • Tuesday, 23 October 2012