Like this article? We recommend
Defining the Remote Site
Defining the Remote Site
We already created a site definition, so now we need to edit it to add the information for the remote server. Follow these steps:
- Choose Site > Manage Site to display the Manage Sites dialog appear, as shown in Figure 5.
- Select the site you want, and then click the Edit Selected Site icon below the list of sites; the icon looks like a pencil. The Site Setup dialog appears.
- Click the Servers category. The Servers pane appears with no servers defined, as shown in Figure 6.
- Click the Add New Server button at the bottom of the server list (it looks like a plus sign). The Server Definition dialog appears, set to the Basic tab (see Figure 7).
- Enter the name of the server in the Server Name field. Dreamweaver uses the name "Remote Server" elsewhere in the program, and I suggest you do that, too.
- From the Connect Using pop-up menu, choose one of the connection types, as shown in Figure 8. The Server Definition dialog changes to show the fields you need to complete for the connection type you selected. In this example, we're using an SFTP connection.
- In the Address field, enter the hostname or address of your web server. The hostname could be something like http://www.peachpit.com or ftp.adventutetools.com. Often the hostname will be the name you would enter into a web browser without http:// at the beginning. It must begin with www or ftp and can't be just the domain name, such as pearson.com. The name also shouldn't contain directories or slashes, such as http://www.negrino.com/books/.
- In the Username field, enter your login name.
- Enter the password.
- If you want Dreamweaver to remember the login and password (recommended), make sure that the Save checkbox is selected.
- In the Root Directory field, enter the name of the folder on the website containing your site's files, which will serve as the root folder for your site. This folder is also called the host directory. Depending on your web hosting company, this path can have many names. Typical host directory names include htdocs, public_html, and www/public/docs/. If you're unsure of the exact name of the host directory, check with your web hosting company. Sometimes the host server connects to the correct directory automatically, and you can leave the field blank. When you're done entering information, the dialog should look something like Figure 9.
- Click the Test button to make sure that Dreamweaver can connect successfully to your web server. If Dreamweaver reports an error, check the information you entered.
- Click Save to return to the Site Setup dialog. The server you just added now appears in the Server list, as shown in Figure 10.
- Click Save to close the Site Setup dialog, and then click Done to close the Manage Sites dialog.