
143Chapter 9 Customizing Services
To publish a custom website:
1 In the Web pane of Server Preferences, click Custom Sites.
2 To add a new website, click the Add (+) button, and then enter the website’s fully
qualied DNS name and optionally choose the folder where the website les are stored
on the server.
Server Preferences creates a website for the DNS name you enter if it isn’t already in
use and your DNS service can resolve it to your server’s IP address.
If you enter a DNS name that’s already being used for standard web services—wikis, Â
web calendar, blogs, or webmail—you can change the DNS name or specify a
nonstandard access port number. The standard access port for websites is 80.
Before specifying a dierent port, make sure it doesn’t conict with another service
provided by your server. For a list of ports Mac OS X Server may use, open Server
Admin (in /Applications/Server/) and use the Help menu to search for “TCP and UDP
port reference.”
If the status indicator to the right of the DNS name is red, Server Preferences can’t Â
resolve the DNS name to your server’s IP address. To x this, you can change the DNS
name or click Create anyway and manually set the IP address.
If you don’t choose a folder for the website les, Server Preferences creates one for you
in the default location, /Library/WebServer/Sites/domainname (where domainname is
the DNS name you entered.)
3 Copy the les you want available on the website to the website folder, removing
placeholder les you don’t need.
Make sure your website’s homepage is named index.html or index.php.
Komentarze do niniejszej Instrukcji