Using Mac OS X Panther Web Sharing
With .Mac, Apple takes care of the Web server for you, but you aren't limited to .Mac: You have other options when it comes to posting Web pages. Mac OS X comes stocked with its own high-powered Web server, so you can run things without .Mac. Consider the advantages, won't you?
- Privacy: Everyone in the house wants access to the family phone book. You want all computers on your home network to see the telephone list but not the whole world. Posting it on the home network keeps it secure from prying eyes outside your home.
- Your own domain: Want a name like www.size14feetphotos.com? Anyway, if you run your own Web server, you can arrange for your own domain name.
- Speed: Your friend needs a copy of your iMovie masterpiece for a class project. Rather than wait for you to post the file to your iDisk, he decides to download it directly from your computer.
- Coolness factor: It's fun, easy to do, and your mother will truly be proud. Seriously, it is fun and easy to run your own Web server. (And although your mother might not actually give a hoot, companies like employees who know useful skills; therefore, Web server stuff is good to know.)
Confessions of a UNIX Webmaster
Deep in the guts of Mac OS X lies one of the most popular Web servers around: Apache, which turns your Macintosh into a full-featured Web server. The Apache Web server is well known around the world and comprises about half of all personal and commercial Web servers in use today. Yes, that's right! You have one of the world's most-used Web servers already installed on your Mac!
By now, you might be wondering what makes Apache so great. Apache's first appealing feature is its price — absolutely free. Free is sassy! Free isn't any good without quality, though. Fortunately, Apache delivers in this aspect as well. It's extremely reliable — and combined with the crash-proof Mac OS X, you can be almost certain that your Web server will always be available. Besides being rock-solid and free, Apache sports all the features you'd expect from a top-notch Web server, such as techno-wizard integration with databases and scripting languages. Honestly, it can serve anything you throw at it.
Configuring and running Apache
In addition to all its great qualities, Apache is dead simple to operate in Mac OS X. Open the System Preferences and click the Sharing icon; then mark the check box next to Personal Web Sharing to launch Apache. That's it! It doesn't get any easier . . . at least, when it comes to turning on Apache. (See Figure 1.)
Figure 1: Start your Web server with only one click in System Preferences.
To begin using your Web server, open a Finder window and navigate to the Sites folder that resides in your Home folder; this is the root of your personal space on the Web server. Any files that you add to this folder will be accessible via your Web server.
You might find a file named index.html already installed in the Sites folder. This is the default file for your Web site. To view it, open your favorite Web browser and load this URL, replacing ~username with the username that you're currently using:
http://127.0.0.1/~username/
The 127.0.0.1 address is a generic Internet Protocol (IP) address, which means self. (In other words, your Mac is connecting to itself. Faintly unsettling, but absolutely legal.) You can also use your real IP address, which appears at the bottom of the Sharing panel in the System Preferences when you turn on Personal Web Sharing.
To see the Web page from another computer, you must use the real IP address. The 127.0.0.1 address is merely a convenience for use when you're using the actual machine that runs the Web server.
Because Mac OS X is a multi-user environment, each user can host a Web site. The key is the username found at the end of the URL; replace it with the appropriate username, and you're ready to go. If everything goes smoothly, you should be viewing the default Mac OS X Web page, as shown in Figure 2. The default page displays a welcome message and some important information for Web-sharing beginners. Make sure that you read the information carefully.
In addition to a main page for any individual that logs in, the Web server also has a global default page. To find the global default page, follow these steps:
1. Open a new Finder window.
2. Double-click the drive that contains your Mac OS X installation.
3. Choose Library --> WebServer --> Documents.
Here you'll find dozens of HTML files. These files are the default global home pages for many different languages. For English versions of the Mac OS, this means that the file named index.html.en serves as the default home page for the server. To view this file in your browser, try this URL:
http://127.0.0.1/
This will display a Web page like the one shown in Figure 3.
Figure 2: The default Apache Web page for your username greets you upon your first visit to the site.
Creating Web pages
To change the default Web page, simply open it in your favorite HTML editor and start changing it. An HTML editor is an application that lets you lay out your Web page with what-you-see-is-what-you-get (WYSIWYG) ease. If you're familiar with a word processor, you're well on your way to using an HTML editor. Of the many HTML editors available, VersionTracker will give you a good head start on finding some of the most popular ones.
You aren't limited only to HTML editors, of course. Many word processors support HTML export, so it's a cinch to create Web pages with them by simply choosing File --> Save As.
If you already know HTML (Webmasters might say, "If you can bang out raw HTML code"), you can edit your Web pages by hand. Simply open the existing index.html file with a text editor like TextEdit or BBEdit by choosing File --> Open and change it to suit your needs. For example, a simple Web page might read like this:
<html>
<head><title>My First Web Page</title></head>
<body>
Welcome to my Web site!
</body>
</html>

Macs and OS X Glossary
802.11x wireless
A protocol for connections to your Ethernet network and your Apple TV unit.

Macs and OS X Glossary
Address Book
The place for addresses, phone numbers, and e-mail addresses on the Mac. You can also add a picture and note about the person.

Macs and OS X Glossary
alias
A pointer to another application of folder.

Macs and OS X Glossary
Bluetooth
A short-range wireless technology that lets your Mac communicate with other compatible gadgets, from up to 30 feet away.

Macs and OS X Glossary
ColorSync
A printer setting that lets you add black and white, blue tone, sepia, or other filters.

Macs and OS X Glossary
cookie
A small file that a web site automatically saves on your hard drive. It contains information that the site will use on your future visits. For example, a site might save a cookie to preserve your site preferences for the next time or ¯ in the case of a site such as Amazon.com ¯ to identify you automatically and help customize the offerings that you see.

Macs and OS X Glossary
Dashboard
A translucent screen that lays on top of your desktop and houses clever little applications called widgets.

Macs and OS X Glossary
desktop
The whole of your Mac’s computer screen. Also called the Finder.

Macs and OS X Glossary
Discoverable mode
Helps other Bluetooth devices find your Mac.

Macs and OS X Glossary
Dock
The colorful bar on the bottom of the Mac screen. It’s a rough cross between the Windows taskbar and the Start menu.

Macs and OS X Glossary
double-clicking
Left-clicking twice in rapid succession while keeping the cursor in the same location.

Macs and OS X Glossary
dragging
Positioning the cursor on top of a symbol or icon and then holding down the mouse button and rolling the mouse across your desk, which moves the symbol or icon to a new location.

Macs and OS X Glossary
driver
A software program provided by the printer manufacturer that tells Mac OS X how to communicate with your printer.

Macs and OS X Glossary
Dynamic Host Configuration Protocol; DHCP
A protocol that enables a computer to automatically get connection information for communicating with a network or your ISP.

Macs and OS X Glossary
Exposé
A Mac feature that, with a click of a button, organizes your Mac desktop.

Macs and OS X Glossary
FileVault
A Mac feature that automatically scrambles, or encrypts, the data in your Home folder.

Macs and OS X Glossary
Finder
The application that Mac OS X runs to display the operating system’s menus and windows.

Macs and OS X Glossary
FireWire
A speedy connector often used with digital cameras.

Macs and OS X Glossary
FTP
Part of the TCP/IP protocol suite; (the hoary acronym FTP stands for File Transfer Protocol. FTP is one of the oldest methods for sharing files between computers

Macs and OS X Glossary
function keys
Housed on the top row of the Mac keyboard, the keys with the letter F followed by a number.

Macs and OS X Glossary
iCal
The Mac’s built-in calendar.

Macs and OS X Glossary
iDVD
The application that lets you burn movies onto a disk.

Macs and OS X Glossary
iMac
A Mac desktop computer.

Macs and OS X Glossary
iPhoto
The application where you store and touch up digital images.

Macs and OS X Glossary
iSync
The application that keeps your calendar, Address Book, and Internet bookmarks synchronized across multiple devices.

Macs and OS X Glossary
iTunes
Apple’s renowned musical jukebox.

Macs and OS X Glossary
iWeb
The tool that lets you create personal Web sites, blogs, and podcasts.

Macs and OS X Glossary
Lightweight Directory Access Protocol; LDAP
With LDAP, you can search a central company directory from anywhere in the world as long as you have an Internet connection.

Macs and OS X Glossary
Lightweight Extensible Authentication Protocol
An encryption protocol developed by Cisco Systems for superior security in the business world.

Macs and OS X Glossary
Mac Mini
Apple’s budget desktop computer. Weighing less than 3 pounds, it’s portable, but not in the same sense as a notebook.

Macs and OS X Glossary
Mac OSx
The operating system that Apple included with all new Mac computer systems since 2002.

Macs and OS X Glossary
Mac Pro
A Mac desktop intended for professionals facing demanding graphics and other computing tasks. Its arrival completed the transition of the Mac line to Intel processors.

Macs and OS X Glossary
MacBook Air
Apple’s super-thin Mac. Encased in aluminum with a 13.3-inch display, Air measures just 0.16 inches at its skinniest point and just 0.75 inches at its thickest. But it still boasts a full-size keyboard and very good battery life.

Macs and OS X Glossary
MacBook, MacBook Pro
Apple’s successor to the PowerBook.

Macs and OS X Glossary
Mail
Apple’s built-in calendar.

Macs and OS X Glossary
MobileMe
The application that keeps your e-mail, contacts, and calendar synchronized, no matter what device you’re using.

Macs and OS X Glossary
Network interface card
A hardware device that your computer uses to talk to the rest of the network.

Macs and OS X Glossary
operating software
The software that makes a Mac work.

Macs and OS X Glossary
parental controls
Safety features that let you place limitations on your child’s computer use.

Macs and OS X Glossary
partition
A formatted section of a disk that contains data.

Macs and OS X Glossary
PDF
A special document display format developed by Adobe; they display like a printed document but take up minimal space.

Macs and OS X Glossary
phishing
A form of Internet fraud where identity thieves, posing as a respectable financial or Internet company, tries to dupe you into clicking phony links to verify personal or account information.

Macs and OS X Glossary
RAID set
A group of multiple separate disks, working together as a team.

Macs and OS X Glossary
Safari
The Mac’s Web browser.

Macs and OS X Glossary
Smart Groups
A way to group contacts in your Address Book.

Macs and OS X Glossary
Smart Mailboxes
Searches for e-mail that matches specific search criteria.

Macs and OS X Glossary
Spotlight
The Mac’s search technology.

Macs and OS X Glossary
start-up disk
The boot drive that contains the Mac OS X system you’re using at the moment

Macs and OS X Glossary
thread
Contains an original message and all related replies, which makes it easy to follow the flow of an e-mail discussion without bouncing around within your Inbox, searching for the next message in the conversation.

Macs and OS X Glossary
trackpad
The smooth surface below your Mac keyboard that’s your laptop’s answer to using a mouse.

Macs and OS X Glossary
USB port
The place on your Mac where you plug in devices you want to connect, such as printers, scanners, digital cameras, and more.

Macs and OS X Glossary
Voiceover
A screen reader designed to make using a Mac easier by speaking the contents of the screen.

Macs and OS X Glossary
wireless network
A network that isn’t connected by wires but uses radio waves, instead.