
36 Chapter 3 Managing Websites
Setting Up a Web Folder for a Site
A site’s default web folder is used as the root for the site (called DocumentRoot in
Apache). 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.
You need access to the file system on the server.
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.
7 Click Save.
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 uses the first one
listed in the site’s 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.
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.
Comentarios a estos manuales