Managing web sites, Setting up the documents folder for your web site, Changing the default web folder for a site – Apple Mac OS X Server (Administrator’s Guide) User Manual
Page 349

Web Service
349
4
Enter a name for the new port configuration and choose the port you are configuring from
the Port pop-up menu. Click OK.
5
Choose the port configuration you just added from the Configure pop-up menu.
6
Click the TCP tab, then choose Manually from the Configure pop-up menu. Enter the new IP
address and other information describing the port. Click Save.
Managing Web Sites
The Sites pane lists your Web sites and provides some basic information about each site. You
use the Sites pane to add new sites or change settings for existing sites.
To access the Sites pane:
m In Server Settings, click Web and choose Configure Web Service, then click the Sites tab.
Setting Up the Documents Folder for Your Web Site
To make files available through a Web site, you put the files in the Documents folder for the
site. To organize the information, you can create folders inside the Documents folder. The
folder is located in this directory:
/Library/WebServer/Documents
In addition, each registered user has a Sites folder in the user’s own home directory. Any
graphics or HTML pages stored here will be served from this URL:
http://server.example.com/~username/
To set up the Documents folder for your Web site:
1
Open the Documents folder on your Web server.
If you have not changed the location of the Documents folder, it’s in this directory:
/Library/WebServer/Documents/
2
Replace the index.html file with the main page for your Web site.
Make sure the name of your main page matches the default document name you set in the
General pane of the site settings window.
3
Copy files you want to be available on your Web site to the Documents folder.
Changing the Default Web Folder for a Site
A site’s 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.