2.6. Setting Client SecurityYou'll encounter two security issues when first using a SharePoint site over the Internet:
You can't get rid of the security warning: Internet Explorer always warns you when you open files, such as Word or Excel files, that might contain viruses. However, if you open the file using the Office application or
animal 2-18. Security warning when opening Office files from the Internet
The virus risk comes from macros the file might contain, and in any case, the Office macro security settings determine whether or not macros are run. To check those settings in your Office application, choose Tools
You can solve the second issue by adding your SharePoint site to the list of trusted sites in Internet Explorer:
animal 2-19. Adding a SharePoint site to Internet Explorer's list of trusted sites
Once the SharePoint site is trusted, Office applications can create workspaces on the site from the Shared Workspace task pane. Neither of these security issues occurs for SharePoint sites on your local area network: those sites are included in the Local intranet zone, which has a higher level of trust. |
2.7. Creating Self-Hosted Sites
All of the
The rest of this chapter explores installing SharePoint and creating SharePoint sites on your own server. If you've already decided to stick with a hosted site, you can skip ahead to the section "Allowing Anonymous Access," because the
|
2.8. Installing SharePoint ServicesSharePoint Services is a component in Windows Server 2003. To install those services on an existing server you'll need the following:
There are three configuration options for installing SharePoint Services, and you should choose your target configuration before proceeding. The main difference among configurations is where data is stored, as described in Table 2-6. Table 2-6. Possible SharePoint Services database configurations
For anything more than a personal or small-office site, I recommend using one of the SQL Server configurations because
The following sections examine these steps in more detail. 2.8.1. Questions to Ask Before You Install
Before installing SharePoint Services, you should have answers to the questions in Table 2-7, because the answers affect how you install and set up your SharePoint site. Note that these questions may require discussion with managers or team
Table 2-7. Installation checklist
2.8.2. Checking SQL ServerIf SharePoint is to use SQL Server, before you begin your installation, the full-text search component and Service Pack 3 (SP3) or later should be installed.
{% if main.adsdop %}{% include 'adsenceinline.tpl' %}{% endif %} To install full-text search in SQL Server:
|
|||||||||||||||||||||||||||||||||||||||||||||||||
|
Setting |
Value |
||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
IP Address |
All unassigned |
||||||||||||||||||||||||||||||||||||||||||||||||
|
TC Port |
80 |
||||||||||||||||||||||||||||||||||||||||||||||||
|
Host Header Value |
Your domain name (for example, www.mstrainingkits.com) |
Click OK twice to close the dialogs and make the changes.
Make sure the domain you specified in step 2 is registered for the IP address. On the Internet, that is done with a domain registrar. Within an intranet, that is done on the DNS server or through the client's
Hosting the site under a different port number means the domain part of the address includes a specific port number rather than using the default HTTP port (80) (for example, http://www.usingsharepoint.com:8080/). To change a site's TCP port, select the site in IIS and choose Action
Properties
Web Site and change the TCP port settings.
The
Hosting an existing site as a SharePoint subsite is more complicated, but establishes a more hierarchical site address. For example: http://www.mstrainingkits.com/ExistingSite. To host an existing web site as part of the top-level SharePoint site:
Create a new virtual folder for the existing web site within the SharePoint web site. Select the SharePoint site in IIS and choose Action
New
Virtual Directory and complete the Directory Creation wizard.
Change the SharePoint site's security and session state settings in Web.config to enable the subsite to execute.
Test your site to verify that it works from the new address.
Excluding a
If your existing site is an ASP.NET application, you'll need to change the security settings SharePoint uses. By default, SharePoint runs under limited permissions, which
<trust level="
WSS_Medium
" originUrl="" />
SharePoint omits the ASP.NET Session module by default, so you need to make the change (indicated in bold ) to Web.config if your ASP.NET application uses session state:
<httpModules>
<clear />
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />
<add name="WindowsAuthentication"
type="System.Web.Security.WindowsAuthenticationModule" />
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>
</httpModules>
After you complete these steps, verify that your existing application works from the subsite address. There are a couple things you should check for:
Broken links or missing resources. If your site used absolute addresses rather than relative ones, the change to your site structure may break those links.
Missing application starting points. If your existing site included subsites with their own executables, you'll need to recreate those application starting points in IIS.
To create application starting points in IIS, select the folder containing the application and choose Action
Properties. Then, on the properties dialog, click Create, select the application pool to run under, and click OK. Figure 2-27 illustrates adding an application starting point for a subsite within
MStrainingkits
.