SoftwareCentral · Web site setup

Setup Website

An extra SoftwareCentral web site that must allow anonymous access. The HTA uses it to close itself automatically when it is ready. It can also be used when the whole HTA is set up to run anonymously.

Anonymous Authentication only Same application pool and folder Optional host name

1 What the anonymous site is for

Set up an extra SoftwareCentral web site for the HTA. This web site must be anonymous.

The main SoftwareCentral web site requires a signed-in user (see Set the Authentication for the SoftwareCentral website). The HTA runs before anyone is signed in, so it uses this second web site, which allows Anonymous Authentication. The HTA closes itself automatically when it is ready.

The same web site can also be used if the entire HTA is set up to run anonymously.

2 Add the site in IIS Manager

  1. On the web server that hosts the SoftwareCentral website, open Internet Information Services (IIS) Manager. Right-click and add a new web site with Add Web Site…, as shown in the picture below.
  2. Configure the new web site so that it uses the data of the main web site:
    • a. Application pool: select the application pool of the main site.
    • b. Physical path: select the install directory of SoftwareCentral.
    • c. Port: select a port that is not used by any other web site.
    • d. Optional: a Host name can be added to make the script easier to set up later. Remember to create a host record in DNS for it.
    • e. Click OK to create the web site.
Add Web Site dialog for the anonymous site. The fields show the site name, the application pool, the physical path, the port and an empty host name.
The Add Web Site dialog for the anonymous site, from an earlier setup. The values are examples: the application pool and the install folder are those of the main site, and the port is one that no other site uses.

3 Allow anonymous access only

  1. Go to the Authentication settings of the newly created web site. Enable Anonymous Authentication. All other types of authentication must be disabled, as shown below.
Authentication feature for the anonymous site in IIS Manager. Anonymous Authentication is Enabled. ASP.NET Impersonation, Basic Authentication, Forms Authentication and Windows Authentication are Disabled.
The Authentication settings of the anonymous site: Anonymous Authentication is Enabled; ASP.NET Impersonation, Basic Authentication, Forms Authentication and Windows Authentication are Disabled. IIS Manager picture from an earlier setup.
Keep the main site unchanged This step is for the new anonymous site only. The main SoftwareCentral web site keeps its own authentication, which is set on the page Set the Authentication for the SoftwareCentral website.

4 Other use of the site

The same anonymous web site is also the address that the self-service Reset Password page is opened from. The page is loaded from this site because the normal sign-in cannot be used there. Its address is entered in the Reset Password - Anonymous site address setting, and the reset e-mails link to it.

5 Best practice

  • Allow Anonymous Authentication and nothing else on this site. With Windows Authentication enabled on the anonymous site, the browser asks for a Windows sign-in on the HTA pages.
  • Use the application pool and install folder of the main site. SoftwareCentral keeps its settings in its database, not in the web site, so both web sites read the same configuration.
  • Use HTTPS for the anonymous site. The Settings page says that the anonymous site should use HTTPS when self-service password reset is used.
  • Create the DNS host record first. If you enter a host name, create its DNS record before you use the name, and use the same name wherever you enter the anonymous site address.

6 Troubleshooting

SymptomCauseWhat to do
The browser asks for a Windows user name and password on the HTA pages.Anonymous Authentication is not enabled on the anonymous site, or Windows Authentication is enabled on it.Open the Authentication settings of the anonymous site and follow step 3: enable Anonymous Authentication and disable the others.
The anonymous site address does not open.The host name has no DNS record, or the port is used by another web site.Create the host record (step 2d), or check that the port you chose in step 2c is not used by another site.

See also: Configure Anonymous or Basic Authentication.