Mac OS X 10.5 Help
Sharing a website on your computer
You can use the Apache web server software included with Mac OS X to host a website on your computer. Before doing so, you should already know how to create HTML pages and build websites.
To host a website on your computer:
Use the HTML editor of your choice to create your website. For your site’s homepage, use the filename “index.html” so that web browsers can locate and open it automatically.
Put all of your website’s pages, graphics, and any media files in your home directory’s Sites folder.
The existing index.html page will be replaced with your new index.html page.
Choose Apple > System Preferences, and then click Sharing.
Select the Web Sharing checkbox.
To view webpages you put in your Sites folder, open a web browser and go to http://your.computer.address/~yourusername/.
For “yourusername,” use your short user name, and make sure you include the ending slash (/). o find your short user name, open Accounts preferences and select your account in the list. Your short user name is displayed below your name.
To view pages you put on your hard disk in Library/WebServer/Documents, go to http://your.computer.address.
To find your computer’s address, select Web Sharing in Sharing preferences. The address is displayed in the window.
To learn more, open the index.html file in Library/WebServer/Documents/manual/.