User manual

Table Of Contents
Chapter 3 Managing Websites 25
Changing the Default Web Folder for a Site
A sites default web folder is used as the root for the site. In other words, the default
folder is the top level of the directory structure for the site.
To change the default web folder for a site hosted on your server:
1 Log in to the server you want to administer.
2 Drag the contents of your previous web folder to your new web folder.
3 In Server Admin, click Web in the list for the server where the website is located.
4 Click Settings in the button bar.
5 In the Sites pane, double-click the site in the list.
6 Type the path to the web folder in the Web Folder field, or click the Browse button and
navigate to the new web folder location (if accessing this server remotely, file service
must be turned on to do this; see the file services administration guide for more
information).
7 Click Save.
Web service restarts.
Setting the Default Page for a Website
The default page appears when a user connects to your website by specifying a
directory or host name instead of a file name.
You can have more than one default page (called a default index file in Server Admin)
for a site. If multiple index files are listed for a site, the web server displays the one
highest in the list that is in the sites folder.
To set the default webpage:
1 In Server Admin, click Web in the list for the server you want.
2 Click Settings in the button bar.
3 In the Sites pane, double-click the site in the list.
4 In the General pane, click the Add button and type a name in the “Default index files”
field. (Do not use any spaces in the name.)
A file with this name must be in the website folder.
5 To set the file as the one the server displays as its default page, drag that file to the top
of the list.
6 Click Save.
Web service restarts.
Note: If you plan to use only one index page for a site, you can leave index.html as the
default index file and change the content of the existing file with that name in /Library/
WebServer/Documents.
LL2350.book Page 25 Friday, August 22, 2003 2:32 PM