SUBSCRIBE to SharePointPro Connections     Register today for your FREE "SharePointPro Connections UPDATE " eNewsletter

SUBSCRIBE to SharePointPro Connections     Register today for your FREE "SharePointPro Connections UPDATE " eNewsletter

     

 

     
Skip Navigation Links.
Collapse SharePoint SharePoint
Expand SharePointPro Connections MagazineSharePointPro Connections Magazine
Collapse SharePointPro Connections Update SharePointPro Connections Update
Maximize Your SharePoint 2010 Investment with MetaVis
SharePoint Service Applications
SharePoint Content Management
SharePoint Beta
SharePoint On the Job
SharePoint Shines at the Olympics, Plus Office Olympics Winners, and a New Magazine
Potential SharePoint Pitfalls
SharePoint Printing--And SharePoint Fun On the Road
Discoverability and SharePoint 2010
More SharePoint MVP Predictions for 2010
SharePoint in 2010: SharePoint MVPs Offer 2010 Predictions
SharePoint 2010 Lists and a Question
SharePoint: Garbage and Governance
SharePoint and Social Networking With a Purpose: Next Steps
SharePoint Updates and Prereqs
SharePoint 2010 and Social Networking
SharePoint and Office Betas Released!
MOSS 2007 and SharePoint 2010: Walking the line between past and future
SharePoint Update: "Current" and "Next Version" News
SharePoint 2010: What a Difference 3 Years Makes
SharePoint Wish List: Does SharePoint 2010 Deliver?
Top 4 Things Devs Can Do to Prepare for 2010
Move Over, Miley--And Vegas, Baby!
Fundamentals: Implementing a Web Application
Web Apps and Webinars
Hyper-V? Not Me! Thank the Heavens for VMware Workstation
News in Review: Cool Tools and Hot Topics in SharePoint Land
My SharePoint Summer Vacation
Will Hardware Be a Deployment Blocker for SharePoint 2010?
Bad Practice #1: Not Using Solutions to Deploy Artifacts to SharePoint
Top 10 Best Practices for Document Libraries
The Curtain Rises (Just a Bit) on SharePoint 2010
Clearing the Fog: Office Integration with SharePoint
A Big Fix for a Big Oops
Information Architecture: Are We Talking the Same Language?
Wise and Not-So-Wise Choices, Part 3
Wise and Not-So-Wise Choices, Part 2
Wise and Not-So-Wise Choices, Part 1
Busy Month for SharePoint Enthusiast and SharePoint Product Group
What You Get with SharePoint SP2
Office 2010 and SharePoint 2010 Wish List
Big Wins with SharePoint: London, Lisbon, and LA
Revelations About Exchange 2010, SharePoint Server 2010, and MOSS 2007 SP2
Branded a Fool
Bil Simser Compiles Favorite CodePlex Projects
SharePoint Designer Kicks It Up a Notch
Social Networking and the Enterprise
Office 2010 Will Not Appear in 2009
SharePoint Goes to School with Moodle
Making Document Libraries More Accessible: Scripting Network Places and Network Locations
An Overview of SharePoint Pro Online Live!
Expand SharePoint Backup Strategies SharePoint Backup Strategies
October 16, 2007
Introducing Office and SharePoint Pro
Windows SharePoint Services and Windows Server File for Divorce
What Do You Think? New Products and Addons Forums
Use Kerberos to Secure MOSS 2007
The SharePoint Capacity Planning Tool
Service Packalooza
SharePoint News for the New Year
SharePoint Migration Secrets
SharePoint Replication
Windows Server 2008 and Windows Vista SP1: What They Mean to SharePoint
SharePoint and Forms-based Authentication
The SharePoint Permissions Model
Microsoft Online Services Offers SharePoint to Businesses of All Sizes
SharePoint: What Do YOU Think?
STSADM at Your Service
Adding Templates for Top-Level Sites
Taking the Pulse of the SharePoint Community
Big News on the Collaboration Front from Telligent
SharePoint Report Card: Search
Report from the Microsoft MVP Summit 2008
Summary of SharePoint Scenario Report Cards
Got Yahoo!? I’m so sorry.
Implementing Folder Content Types
License to Fill: Licensing Windows SharePoint Services for the Extranet
Licensing Windows SharePoint Services
News from Tech Ed, Installing WSS on Vista—a Rave and Rant, and More
Tech Ed 2008 Wrap-Up
Great Stuff
MOSS 2007 Applications in the Business World
Microsoft Online Makes a Big Splash in the Services Pool
Comparing InfoPath and SharePoint Designer Forms
Comparing InfoPath and SharePoint Designer Forms, Part 2
Migrating Microsoft Office SharePoint Server 2007 to a Different Server
Microsoft Office SharePoint Server and Excel Services
SharePoint Sharing from Beijing
Olympics Diary
SharePoint’s Role in Bringing the Games to the Web
Email-Enabling SharePoint Document Libraries and Lists
Back to Reality
SharePoint's "Big" Problems
If You Build It Right, They Will Come
Deploying Shortcuts and Favorites to SharePoint Sites
SharePointers
Easy Answers about Document Libraries (Part I): Overriding Check Out
Spiral Development, the 80/20 Rule and SharePoint
SharePoint Calendar Tips
Sharepoint Futures
Excel Services and Excel Integration with SharePoint
My Migration to Microsoft Online
SharePoint Online's Debut
A Microsoft Online Report Card
Links, Links Everywhere...
Creating a Custom Advanced Search by Building Strings with JavaScript
If Steve Ballmer Were Santa, and I Were on His Lap
MVP Predictions for 2009
Making History
Scorecards and Dashboards and Mysteries... oh my!
SharePoint 14 and Office 14
Supporting the Community
Report from the MVP Global Summit: No Serious Injuries
Microsoft Announces FAST Search Roadmap
Office 2010 Won't Appear in 2009
Terst Test
Expand Office 2007Office 2007
Expand Office 2003Office 2003
     

Visit SharePointProSummit.com


Visit SharePointProSummit.com

     


     
     

Fundamentals: Implementing a Web Application

Fundamentals: Implementing a Web Application

Two weeks ago, I delivered a series of online workshops addressing governance, administration, and "business intelligence light." To those of you that attended, thank you! There were a lot of great questions that came in during and after the event, and several of them caught my eye because they highlight the problems with the default settings in Central Administration when you create a new web application. Those default settings, which are wrong for most scenarios, lead to a lot of confusion. So, I'd like to clarify them by reviewing the fundamentals of creating a web application. Along the way, I'll point out the problems with the default settings and, hopefully, you'll end up making better, more informed choices the next time you configure a web application.

In SharePoint, a web application is a website to IIS. Every website must have a URL, such as http://intranet.contoso.com/default.aspx:80. As you can see, this URL consists of the protocol, the address or domain name of the host, a path, the filename of a page to serve, and a port. Obviously, the example I've shown is a bit extreme because parts of the URL can be left out. Both the client (browser) and server will fill in the blanks. So, for example, a user browsing to intranet.contoso.com will end up getting the same page. But behind the scenes, the missing components of the URL are completed. The client adds the http:// automatically and makes the request over port 80. The server or application decides what to serve as a default page if a page isn't specified. In between the browser and the server is DNS, which resolves the name—in this case intranet.contoso.com—to an IP address so that the request can be sent to the server's address.

Each web application needs a unique identifier, which can be a combination of:

  • An IP address
  • A port
  • A host header

In most scenarios, the port will be 80 (http://) or 443 (https://), which means that the uniqueness must come from the IP address or host header. Many organizations host multiple websites on a single server, and there's often no need to have a unique IP address for each site, particularly on an intranet. Therefore, the IP address of the applications is shared. That leaves the host header. When a browser sends a request to the server, it sends the request to the IP address of the server, but it includes the name of the web application as a host header. The server can therefore receive requests for different websites on a single IP address and get those requests to the right place.

That brings us to SharePoint's defaults. When you create a new web application in SharePoint, the defaults use the port to create the unique identifier. A random port is suggested. Since you'll probably want to change that to port 80 (or 443), you'll need to also add a host header: the name of the web application, e.g., intranet.contoso.com (leaving out the http://). You can then change the default suggested description to something more meaningful. You've now created a unique web application based on the host header rather than the port.

Don't forget that clients need to be able to find the server, so add an "A" record (host record) to DNS mapping the name of the web application to the server's IP address. While you can use CNAME records, a number of people smarter than me have pointed out that CNAME records create some issues with more advanced uses of SharePoint, including single sign-on (SSO), so it's best to use A records.

Another default that you'll often want to change is the application pool. By default, SharePoint suggests creating a new application pool for each new web application. An application pool helps segregate and isolate processes. If two web applications share an application pool and one is resource intensive, it could prevent the other from getting things done. Plus, if you have to reset the application pool, you'll reset all the applications in the pool. There will be scenarios in which a unique application pool is necessary. However, each application pool requires memory—in the 700-800MB range—so on a 32-bit system, which can only access 3GB-4GB of RAM, you'll end up getting memory strapped very quickly if you have three or more SharePoint application pools. I've seen it happen—it's ugly. So you'll often want to put applications with related functionality and stability requirements in a shared app pool, particularly on farms with 32-bit servers.

Finally, do yourself a favor and change the default content database name. SharePoint suggests a crazy GUID-based name for the content database. Give it a name you'll recognize when you're performing administrative tasks in either SharePoint or SQL Server.

It's too bad that at least three defaults (the URL, the application pool, and the content database name) are configured in ways that lead SharePoint admins, particularly folks who are newer to the platform, down a dark path. I hope that this review will help you out the next time you see the defaults on the Create Web Application page.