Training
Learning path
Build websites with Power Pages - Online Workshop - Training
Learn how to create websites with Power Pages.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
by Keith Newman and Robert McMurray
In the second phase of building your web farm, you configure shared content and shared configuration on your first web server. Then you add more web servers to your farm.
When you are done with these tasks, record your design decisions before going on to Step 3: Configure IIS Web Farm Load Balancing.
In this procedure, you set up a back-end file server with two shared folders. One folder contains the shared content files for the website. The other folder contains the shared configuration files.
Once the shared content folder is ready, copy the files for the website you set up on the primary web server to the content folder.
C:\Content
.C:\Config
.C:\Content\MySite
.In this procedure, you set up shared content of your primary web server. When finished, your web server retrieves content from the back-end file server.
On your primary, open IIS Manager, select you website, and click Advanced Settings in the Actions pane.
On the Advancing Settings page, change the value of Physical Path to the configuration UNC path, for example \\FileServer\Content\MySite
.
Select Physical Path Credentials, and click the ellipsis (...) button.
In the Connect As dialog, select Specific user, and click Set.
Enter the credentials of the custom shared user account, and click OK.
Click OK two more times to exit Advanced Settings.
If your web farm supports ASP.NET, open command prompt, and enter one the following commands depending on your system:
cd %windir%\Microsoft.NET\Framework64\v4.030319
cd %windir%\Microsoft.NET\Framework\v4.030319
Enter the following command:
caspol -m -ag 1. -url file://<file server>/<content>/<website>/* FullTrust
Replace <file server>
with the name of your file server. Replace <content>
with the name of your shared content folder. Replace <website>
with the folder name for your website. Note FullTrust is case-sensitive.
Close the command prompt, select Application Pools in the Connections page.
Select the application pool for your site, and click Recycle in the Actions pane.
Open a browser, view your site with localhost. The site is displayed as usual, but the content is coming from the back-end file server.
To configure shared configuration, export the configuration files to the back-end file server. Then point the web server to the shared configuration location.
\\FileServer\Config
.A web server added to your farm by using this procedure retrieves both configuration information and website content from the back-end file server.
Open IIS Manager, select your server name, and double-click Shared Configuration.
On the Shared Configuration page, select the Enable shared configuration check box.
In the Physical path box, type the UNC path to the configuration folder on the file server.
In the User name box, type the custom shared user name.
In the Password and Confirm password boxes, type the password for the custom share user account.
In the Actions pane, click Apply.
In the Encryption Keys Password dialog, type the encryption keys password and click OK.
Close and reopen IIS Manager.
If your web farm supports ASP.NET, open command prompt, and enter one the following commands depending on your system:
cd %windir%\Microsoft.NET\Framework64\v4.030319
cd %windir%\Microsoft.NET\Framework\v4.030319
Enter the following command:
caspol -m -ag 1. -url file://<file server>/<content>/<website>/* FullTrust
Replace <file server>
with the name of your file server. Replace <content>
with the name of your shared content folder. Replace <website>
with the folder name for your website. Note FullTrust is case-sensitive.
Close the command prompt, select Application Pools in the Connections page.
Select the application pool for your site, and click Recycle in the Actions pane.
Open a browser, view your site with localhost. The site displays like it did on the primary server.
Training
Learning path
Build websites with Power Pages - Online Workshop - Training
Learn how to create websites with Power Pages.