05.01.2013 Views

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

384<br />

CHAPTER 22 LEOPARD AS A WEB SERVER<br />

Before you can actually load a user’s personal home page, you must activate web sharing<br />

from the Sharing preference pane, in System Preferences, as shown in Figure 22-2. This is<br />

extremely simple: just check the Web Sharing box. There are no options.<br />

Figure 22-2. Activating web sharing from System Preferences<br />

CAUTION Turning on web sharing is an all-or-nothing proposition. If you turn web sharing on<br />

for one account, it will be on for all accounts. To change this behavior, see the “Configuring<br />

Apache” section, which follows.<br />

Accessing Your Site<br />

Your local web server is accessed like any other web server—that is to say, by IP address. You can<br />

use the standard loopback address, 127.0.0.1, but if another user on your network were to try to<br />

access your site at 127.0.0.1, they would get their own machine.<br />

If you’d like to view your page from other computers on your local network, you can use<br />

the .local address, which you can assign from the Sharing pane. However, this depends on<br />

machines resolving DNS via multicast, so it might not work, depending on the configuration of<br />

your network.<br />

If nothing else, you can access your machine by its local IP address. To determine your<br />

IP address, open the Networking pane of System Preferences, and then select the appropriate<br />

network interface from the list on the left. The status will list your IP address, as shown in Figure<br />

22-3. You can get the same information from the Info tab of Network Utility.

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

Saved successfully!

Ooh no, something went wrong!