Por padrão, o Mac OS X exibe páginas usando o Apache. Você pode configurar a autenticação 'Básica' editando .htaccess
manualmente ou pode fazê-lo usando o Administrador do Servidor. A Apple usa o termo Realm no Server Admin para se referir a isso.
Fazendo isso manualmente, veja a Pergunta 74906 ( Como protejo com senha? um site da Apache? )
Instruções de administração do servidor (GUI) (da Documentação ):
- Open Server Admin and connect to the server.
- Click the triangle at the left of the server.
- The list of services appears. From the expanded Servers list, select Web.
- Click Sites, then select the website in the list.
- Click Realms below the websites list.
- Click the Add (+) button to create a realm. The realm is the part of the website users can access.
- In the Realm Name field, enter the realm name. This is the name users see when they log in to the website.
- From the Authentication pop-up menu, choose a method of authentication:
- Basic authentication is on by default. Don’t use basic authentication for sensitive data because it sends your password to the server unencrypted.
- Digest authentication is more secure than basic authentication because it uses an encrypted hash of your password.
- Kerberos authentication is the most secure authentication. If you want Kerberos authentication, you must join the server to a Kerberos realm.
- Enter the realm location or folder you are restricting access to:
- Choose Location from the pop-up menu and enter a URL to the location in the website that you want to restrict access to.
- Choose Folder from the pop-up menu and enter the path to the folder that you want to restrict access to. You can also click the Browse button to locate the folder you want to use.
- Click OK.
- Select the new realm and click Add (+) to open the Users & Groups window. To switch between the Users list and the Groups list, click Users or Groups in the window.
- To add users or groups to a realm, drag users to the Users & Groups column on the right of the Realms pane. When users or members of a group you’ve added to the realm connect to the site, they must supply their user name and password.
- Limit realm access to specified users and groups by setting the following permissions using the up and down arrows in the Permissions column:
- Browse Only: Permits users or groups to browse the website. Â Browse and Read WebDAV: Permits users or groups to browse the website and also read the website files using WebDAV.
- Browse and Read/Write WebDAV: Permits users or groups to browse the website and also read and write to website files using WebDAV.
- None: Prevents users or groups from using any permissions. Click Save. Use the Realms pane to delete a user or group by selecting the name and clicking the Delete (–) button.
(página 39)