05.01.2013 Views

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 22-3. The Networking pane of System Preferences<br />

TIP Which network interface is the appropriate one? Chances are, you only have one active<br />

interface, which will have a green light next to it. If you have multiple active network interfaces,<br />

pick one that’s connected to the network you are trying to access the machine from.<br />

Depending on your network, you may or may not be able to access your machine from elsewhere<br />

on the Internet. How can you find out? Your first clue is your IP address. If it starts with<br />

10, 169, or 192, it’s most likely a local address assigned by a connection sharing protocol such as<br />

DHCP.<br />

If it’s something else, it might be reachable. Your best bet is to phone a friend and see if they<br />

can access your site by IP address.<br />

Customizing Your Site<br />

CHAPTER 22 LEOPARD AS A WEB SERVER 385<br />

As nice as the default personal home page is in <strong>Leopard</strong>, you’ll probably want to add your own<br />

content. Using your favorite web design tool, publish your content to your local Sites directory.<br />

The next time you visit your local address, your new site should be there, as shown in Figure 22-4.<br />

If you get a 403 Forbidden message, chances are you do not have permissions on Sites or its<br />

contents. In general, folders serving web sites need to be readable and executable by everyone,<br />

while web documents and files should be readable by everyone.<br />

Set the appropriate permissions on your Sites folder and its content using the Finder or the<br />

command line, and then try loading your page again. If it still doesn’t work, your user site might<br />

not be configured correctly (see the “Configuring Apache” section, which follows).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!