Install Sana Commerce Webshop on Web and Database Server

Open 'Install Sana Commerce Webshop on Web and Database Server' wizard, choose your solution and scenario to see more provider-related information.

Configure the 404 and 500 Pages

Step 1: Open the 'web.config' of the Sana Commerce frontend project in any text editor.

Step 2: Locate the 'customErrors' section in the 'system.web' configuration section:

<customErrors mode="RemoteOnly">
    <error statusCode="404" redirect="~/PageNotFound.aspx"/>
    <error statusCode="500" redirect="~/PageError.aspx"/>
</customErrors>

Step 3: Configure the 404 & 500 'statusCodes'. Also, set the mode attribute of the 'customErrors' node to 'RemoteOnly' to make sure the customer 404 & 500 pages are shown to external visitors. Local visitors, who visit through the web browser on the server, will be presented the error messages for debugging reasons. 

Now you need to configure the custom errors pages in IIS:

Step 1: Open the IIS Manager ('Start > Administrative Tools').

Step 2: Select your website, click right and choose 'Properties'.

Step 3: Click the 'Custom Errors' tab.

Step 4: Search for the 404 error and click the 'Edit' button.

Step 5: Select the 'URL' in the 'Message type' dropdown.

Step 6: Enter '/PageNotFound.aspx' in the 'URL' field.

Step 7: Repeat the steps for error 500;100, but enter '/PageError.aspx' in the 'URL' field instead:

 
Configuring Custom Error Pages in IIS 6