Alpha Anywhere | Use IIS behind a load balancer (2024)

Description

If the Alpha Anywhere Application Server for IIS will be used on multiple machines, Microsoft's Web Farm Framework or a Load Balancer will be required to distribute requests across the machines.

Discussion

To manage IIS across multiple servers, a Load Balancer is needed. Microsoft provides a tool for managing multiple servers running IIS called Web Farm Framework. If you do not need to work with an existing load balancer, Web Farm Framework can be used to manage and provision multiple servers running the Alpha Anywhere Application Server for IIS. See Configure a Web Farm with IIS Servers to learn how to use Web Farm Framework to manage multiple servers running IIS.

If you are not using Microsoft's Web Farm Framework (or can't use Microsoft's Web Farm Framework), a third-party load balancer can be used instead to manage multiple instances of IIS. To use a load balancer with the Application Server for IIS, you must configure the Machine Key on each server in order for sessions and web security to function properly.

In addition to ensuring all servers have the same Machine Key, the session state provider must be a database so each machine will have access to the same session.

Configuring the Session State Provider

The session state provider must be configured to use a database that can be accessed by all the machines running the Application Server for IIS. Because a database is required, the LocalStateServer and StateServer methods cannot be used. See Alpha Anywhere Application Server for IIS Provider Configuration to learn more about how to configure the session state provider.

Configuring the Machine Key

The Machine Key is used to hash and/or encrypt cookies for the Alpha Anywhere Application Server for IIS. If multiple servers running IIS have different Machine Keys, the cookies created on one machine won't be usable on the other. This can cause the web security system to behave oddly, wherein the user will log in on one server and then be prompted at some point in the future to log in again because the load balancer has switched them to a different server running IIS with a different Machine Key.

Setting the machine key needs to be done at server maintenance time. Once the key is set existing cookies will become invalid causing users to be sent to the login page.

  1. To set the machine key, go to IIS Manager on the first machine, select the application, and then open the Machine Key feature:

    Alpha Anywhere | Use IIS behind a load balancer (1)

  2. The keys will need to be set in here so uncheck the two "Automatically generate at runtime" checkboxes. You can leave the Validation method and Encryption method set to the defaults though it may make sense to use strong methods. In the image below I selected HMACSHA256 and AES. Next click on the Generate Keys over in the right pane. This will generate keys into the edit boxes. Click apply to set these values.

    Alpha Anywhere | Use IIS behind a load balancer (2)

  3. Copy and save these keys so that they can be pasted into the prompts on the all other machines running the Alpha Anywhere Application Server for IIS.

  4. Log in to each machine and make the Machine Key settings the same as for the first machine.

  5. Enable Preserve web.config elements in the IIS publish profile to ensure the Machine Key will not be overwritten or lost during publishing.

    The machine key setting is stored in the web.config file which means a republish will wipe it out. The publish profile will need to use Preserve web.config elements so that the Machine Key won't be lost on publish.

    The XPath to the machine key settings is:

    /configuration/system.web/machineKey

    Alpha Anywhere | Use IIS behind a load balancer (3)

    Alpha Anywhere | Use IIS behind a load balancer (4)

    See the Create Publish Profile guide and search for "preserve web.config" for more details.

Alpha Anywhere | Use IIS behind a load balancer (2024)
Top Articles
Cargo Claims Handling for Consignees
Shipping glossary
Hotels Near 6491 Peachtree Industrial Blvd
Dricxzyoki
Limp Home Mode Maximum Derate
Cad Calls Meriden Ct
Recent Obituaries Patriot Ledger
2013 Chevy Cruze Coolant Hose Diagram
Radio Aleluya Dialogo Pastoral
Dutchess Cleaners Boardman Ohio
Magic Mike's Last Dance Showtimes Near Marcus Cedar Creek Cinema
Leader Times Obituaries Liberal Ks
Paychex Pricing And Fees (2024 Guide)
How To Cancel Goodnotes Subscription
Mission Impossible 7 Showtimes Near Marcus Parkwood Cinema
Energy Healing Conference Utah
Menards Eau Claire Weekly Ad
Hctc Speed Test
پنل کاربری سایت همسریابی هلو
Rek Funerals
Unity Webgl Car Tag
1636 Pokemon Fire Red U Squirrels Download
Mercedes W204 Belt Diagram
Taktube Irani
Wcostream Attack On Titan
140000 Kilometers To Miles
Gasbuddy Lenoir Nc
Fridley Tsa Precheck
Bozjan Platinum Coins
Jay Gould co*ck
Old Peterbilt For Sale Craigslist
Craigslist Red Wing Mn
T&J Agnes Theaters
The 38 Best Restaurants in Montreal
Louisville Volleyball Team Leaks
Scanning the Airwaves
Prior Authorization Requirements for Health Insurance Marketplace
R/Moissanite
Scarlet Maiden F95Zone
התחבר/י או הירשם/הירשמי כדי לראות.
Dwc Qme Database
Courses In Touch
Foxxequeen
Advance Auto.parts Near Me
Haunted Mansion (2023) | Rotten Tomatoes
Killer Intelligence Center Download
Crigslist Tucson
9294027542
Craigslist Anc Ak
Who Is Nina Yankovic? Daughter of Musician Weird Al Yankovic
Lux Funeral New Braunfels
Nkey rollover - Hitta bästa priset på Prisjakt
Latest Posts
Article information

Author: Fredrick Kertzmann

Last Updated:

Views: 5952

Rating: 4.6 / 5 (46 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Fredrick Kertzmann

Birthday: 2000-04-29

Address: Apt. 203 613 Huels Gateway, Ralphtown, LA 40204

Phone: +2135150832870

Job: Regional Design Producer

Hobby: Nordic skating, Lacemaking, Mountain biking, Rowing, Gardening, Water sports, role-playing games

Introduction: My name is Fredrick Kertzmann, I am a gleaming, encouraging, inexpensive, thankful, tender, quaint, precious person who loves writing and wants to share my knowledge and understanding with you.