Working with Managed Paths in MOSS
2008-03-14 18:18
411 查看
Bob Fox has done a great job on providing screencasts for some administrative functions in SharePoint 2007 and we all hope he continues doing a great job. There are several screencasts that he has produced and today I’m going to focus on Working with Managed Paths [direct link to Managed Paths demo].
Why is this screencast important for a SharePoint 2007 administrator, simply because as a SharePoint 2007 administrator you need to managed paths. SharePoint needs to know which URLs it controls and which URL(s) can be used for Self Service Site creation. Managing paths can be an easy task but if its not planned then things can become daunting. Now lets get into what Bob Fox walks us through in his first screencast. Here’s a brief textual walkthrough:
By defining a managed path you specify which paths in the URL namespace in a web application are used for site collections. You can specify one or more than one site collection exists in a specified path.
For example, using an explicit inclusion, you are saying that http://server_name/team is a site collection but not any possible site collections below it; however, using wildcard exclusion allows you to specify child URLs under http://server_name/sites/* are also site collections.
We are going to look into two different types of inclusion: explicit and wildcard
Explicit inclusions — Includes only the specific path you set. Use explicit inclusions, for example, if you want Windows SharePoint Services to manage a specific path, such as /portal, but not any possible sites below it, such as /portal/webapp.
Wildcard inclusions — Includes any sites below the path you set, so you don’t have to add them individually. This is the type of inclusion to use for Self-Service Site Creation, when you want users to be able to create top-level Web sites underneath a specific path, such as /sites.
In an example environment, we have the following topology:
Projects
Sales
Amer
Emea
Development
Amer
Emea
Projects site will be a wildcard inclusion, sales and development sites both want to have their own paths and below each there will be Amer and Emea.
Lets go through each of these guys so we can get a better understanding.
Click on Application Management using SharePoint 2007 Central Administration screen.
Under SharePoint Web Application Management, select Define managed paths…
For the rest, why not check out the actual screencast by Bob Fox - Working with Managed Paths [direct link to Managed Paths demo]?
stsadm -o addpath -url http://server1/ -type wildcardinclusion
You can also remove an included or excluded path by using the command line. For example, to remove an exclusion for the site at http://server1/hrweb/webapp, you would use syntax like the following:
stsadm -o deletepath -url http://server1/hrweb/webapp
[source: Administrator’s Guide for Windows Sharepoint Services - Managing Paths]
Exclude the Root Directory from Windows SharePoint Services Managed Paths
Create a Managed Path Embedded Site Collection - Ben Curry [MVP]
Managing Paths - Administrator’s Guide for Windows Sharepoint Services 2.0
Why is this screencast important for a SharePoint 2007 administrator, simply because as a SharePoint 2007 administrator you need to managed paths. SharePoint needs to know which URLs it controls and which URL(s) can be used for Self Service Site creation. Managing paths can be an easy task but if its not planned then things can become daunting. Now lets get into what Bob Fox walks us through in his first screencast. Here’s a brief textual walkthrough:
By defining a managed path you specify which paths in the URL namespace in a web application are used for site collections. You can specify one or more than one site collection exists in a specified path.
For example, using an explicit inclusion, you are saying that http://server_name/team is a site collection but not any possible site collections below it; however, using wildcard exclusion allows you to specify child URLs under http://server_name/sites/* are also site collections.
We are going to look into two different types of inclusion: explicit and wildcard
Explicit inclusions — Includes only the specific path you set. Use explicit inclusions, for example, if you want Windows SharePoint Services to manage a specific path, such as /portal, but not any possible sites below it, such as /portal/webapp.
Wildcard inclusions — Includes any sites below the path you set, so you don’t have to add them individually. This is the type of inclusion to use for Self-Service Site Creation, when you want users to be able to create top-level Web sites underneath a specific path, such as /sites.
In an example environment, we have the following topology:
Projects
Sales
Amer
Emea
Development
Amer
Emea
Projects site will be a wildcard inclusion, sales and development sites both want to have their own paths and below each there will be Amer and Emea.
Lets go through each of these guys so we can get a better understanding.
Click on Application Management using SharePoint 2007 Central Administration screen.
Under SharePoint Web Application Management, select Define managed paths…
For the rest, why not check out the actual screencast by Bob Fox - Working with Managed Paths [direct link to Managed Paths demo]?
Managing Paths from the Command Line
You can use the addpath and deletepath operations to manage paths on the command line. Both operations take the -url and -type parameters. The -type parameter has three values: exclusion, explicitinclusion, and wildcardinclusion. For example, to add a new wildcard inclusion to manage all sites at the top level of http://server1, you would use syntax like the following:stsadm -o addpath -url http://server1/ -type wildcardinclusion
You can also remove an included or excluded path by using the command line. For example, to remove an exclusion for the site at http://server1/hrweb/webapp, you would use syntax like the following:
stsadm -o deletepath -url http://server1/hrweb/webapp
[source: Administrator’s Guide for Windows Sharepoint Services - Managing Paths]
Additional Resources:
How to Define a Managed Path Exclusion - Robert Bogue [MVP]Exclude the Root Directory from Windows SharePoint Services Managed Paths
Create a Managed Path Embedded Site Collection - Ben Curry [MVP]
Managing Paths - Administrator’s Guide for Windows Sharepoint Services 2.0
相关文章推荐
- Working with large lists in MOSS2007(四)
- Working with Windows Workflow Foundation in ASP.NET
- Working with large data sets in MySQL
- Working with EXIT, STOP, CONTINUE and RETURN in SAP ABAP
- Working with memory mapped files in .NET 4
- Working with collections in WCF RIA Services (part 2)
- Working with Web Resources in ASP.NET 2.0
- Project with Match in aggregate not working in mongodb
- Asp.Net Web API 2第十八课——Working with Entity Relations in OData
- 好文推荐:Development Tools and Techniques for Working with Code in Windows SharePoint Services 3.0
- Android: Simplified source code for parsing and working with XML data and web services in Android
- Working with Configuration Files (app.config) in C++/CLI
- Working with Windows Workflow Foundation in ASP.NET
- Working with regular expressions in .NET
- Working with Binary Data in Python
- Working With Taxonomy Field in CSOM
- Working-with-files-in-javascript
- Working with Money in Java
- Working with Variants in Visual Basic
- OpenOffice.org Code Snippets--Working with a Presentation Document in C++