There are three steps that you must take to get a web server running with your web pages on a Mac OS X machine:
Log in as admin (or your name if you are an "administrator" = "root user") and click on the Server Configuration tool icon on the bottom. From there, go to the Webserver configuration, and then click on the "Sites" tab.
You will need to know the IP number of your web server (e.g. 10.47.0.11) and the "DNS" name (if any) that it is registered for it.
In addition, the web service for "localhost" with IP number 127.0.0.1 should be enabled (it should already be created). It is enabled if there is a check in the box ahead of its entry in the web services list.
but to edit these files, you would go to the "/var/httpd/Documents" folder.
If you use ftp (or appleshare) to copy your files over from another machine, then place them here. Create any subdirectories (subfolders) as needed.
By default, web server looks for a "home page" called: "index.html"
If it can't find index.html, then it looks for a home page called: "index.php"
The name of the default home page is settable in the web server configuration (see above). Thus, you could have a home page called: "default.html" (earlier apple macintosh web servers used this as a home page name) or "index.htm" (If the file is created and/or edited on a Microsoft Windows computer, they can't handle files named .html, but only .htm)
Also, the Document Root location is settable. If you want to place your web files somewhere besides /var/httpd/Documents, then you can make the apache httpd web server configuration change.
==>System Preferences ==>Sharing ==>Start
(Note: since this is a Unix system with nice Macintosh GUI interfaces, you can also do some of the configuration and start/stop/restart of services such as the web server "by hand" through a ""terminal" (command or shell) window. More on how to do this will be added later.)