Specifications

Setting Up Your Website
The following sections provide instructions for setting up your website.
Setting Up the Web Folder
To make les available through a website, put the les in the web folder for the site. To
organize the information, you can create subfolders inside the web folder. The folder is
located in /Library/WebServer/Documents/.
In addition, each registered user has a Sites folder in the users home folder. Graphics
or HTML pages stored here are served from http://server.example.com/~username/.
To set up the web folder for your website:
1 Open the web folder on your web server.
By default, the documents folder is located in /Library/WebServer/Documents/.
2 Replace the index.html le with the main page for your website.
Make sure the name of your main page matches the default document name you set
in the Sites General pane. For details, see “Setting the Default Webpage on page 37.
3 Copy les you want available on your website to the web folder.
Creating a Website
Use Server Admin to create a website framework. This allows content from the web
folder to be hosted by your web server. Before you can create a website, you must
produce the content for the site and set up your site folders.
To create a website:
1 Open Server Admin and connect to the server.
2 Click the triangle at the left of the server.
The list of services appears.
3 From the expanded Servers list, select Web.
4 Click Sites, then click the Add (+) button to add a site.
5 In the Sites General pane, enter the fully qualied DNS name of your website in the
Host Name eld.
Note: You can leave the Host name blank and the IP address set to “any and the site
remains operational. However, if you use a group wiki, set a Host name for the website.
6 Enter the IP address and port number for the site.
The default port number is 80. If you are using SSL, the port is 443. Make sure the
number you choose is not in use by another service on the server.
To enable a website on the server, the website must have a unique name, IP address,
and port number combination. For more information see “Hosting More Than One
Website” on page 15 .
36 Chapter 3 Creating and Managing Websites