Table of Contents | |||
Long Term Support Stable, tested ServerTemplate assets |
|
Configures an IIS (Internet Information Services) web application server.
Application code can be retrieved from one of the following locations:
* Currently, you can only retrieve application code from a Cloud Files US container. Use the v13 version of the ServerTemplate to retrieve application code from Cloud Files UK containers.
The IIS Download application code boot script retrieves your application code from one of the supported locations above, unpacks it (if necessary), and places it into the following directory by default: C:\inetpub\wwwroot\release\<GMT-timestamp>
In Amazon and Rackspace environments, the SYS Configure IIS logs rotation policy boot script sets up a Windows scheduled task that runs daily and archives any log entries older than one day to an object storage container (e.g. Amazon S3 bucket, Cloud Files (US) container, etc.).
The methods you will use to secure access to your IIS server depend on the cloud provider.
Before an application (e.g. IIS) can perform an action on a database (e.g. create a new record), the application server(s) must first be granted access at the network-level before it can successfully make an application-level request. IIS communicates with the SQL database over TCP port 1433.
Note: If you set up a SQL mirrored setup with a Principal and Mirror database servers, the mirroring of data will occur over TCP port 5022.
Once the database server has updated its permissions to allow access between the application and database tiers, the application will be able to connect the database using the required information. For example, the application will locate the "principal" database server using the 'DNS_DOMAIN_NAME' input (e.g. db-principal.example.com). The application will access the database, which is defined by the 'DB_NAME' input by using the database connection strings, which are specified by the 'OPT_CONNECTION_STRING_DB_USER_ID' and 'OPT_CONNECTION_STRING_DB_USER_PASSWORD' inputs.
A connection string is used by the IIS application to connect to a SQL database. The IIS Add connection string boot script generates a database connection string in your IIS configuration settings (web.config file) with the values that your web application can use to connect to a remote SQL Server database.
If the database does not have a SQL Server user that can be used by the application to access the database, you should use the DB SQLS Create login operational script on the running database server to create the SQL user before you launch the application server.
It's recommended that you use credentials to hide the username and password for the DB_NEW_LOGIN_NAME and DB_NEW_LOGIN_PASSWORD inputs.
The ServerTemplate contains scripts and inputs that support the following load balancing solutions.
By default, the ServerTemplate is designed to connect to an HAProxy load balancer launched with RightScale's Load Balancer with HAProxy ServerTemplate via the LB Register with HAProxy (Chef-based) boot script, which uses machine tags to establish the appropriate connections between the HAProxy load balancer and application servers.
If you want to use an ELB or CLB instead of HAProxy, you should clone and customize the script by replacing the HAProxy connect/disconnect scripts with the appropriate ELB/CLB connect/disconnect scripts. See the Microsoft IIS App Server (v12.11 LTS) - Tutorial for detailed instructions on how to modify the ServerTemplate.
A server certificate and private key in X.509/PEM format is required to support HTTPS (HTTP with SSL/TLS) protocol with the ELB and HAProxy load balancers. IIS server certificates are typically exported in .pfx (PKCS#12) format. However, you can generate PEM-formatted certificate and private key files for the load balancers using the SYS Convert PFX operational script. For more information, see the Microsoft IIS App Server (v12.11 LTS) - Runbook.
The SYS IIS monitoring install boot script configures the server for custom monitoring graphs that are specific to IIS applications. View graphs for the following metrics under the Monitoring tab and create custom alerts based on these metrics. Several alerts are preconfigured for the ServerTemplate including a few that are specific to IIS applications. However, you can also create your additional alerts based on any of the other monitored metrics. See Create a Custom Alert Specification.
Below is a list of the monitored metrics that are unique to the IIS ServerTemplate.
© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.