Creating Aliased Folders and Setting the CGI-Bin Directory

From Documentation
Jump to: navigation, search

Creating Aliased Folders and Setting the CGI-Bin Directory

Sometimes you need to store certain assets of your site in a location separate from the rest of your site. For example:

  • You can link to programs such as CGI scripts or other executables that have to be placed in a specific CGI directory so they run properly.
  • You can place an order form or other pages in a secure location that requires authorized access, without restricting access to the rest of your site.
  • You can link to images or other assets that are maintained or controlled by others, and stored in a protected location.

You must create a publish profile with server type as FTP to use an alias. This option is not available for local, SFTP, or WebDAV publish profiles.

To do this, you create alias folders, using a process in which you define two locations: the actual physical location on your Web server where you want to transfer the pages or assets, and the URL or logical address that you want NetObjects Fusion to use when referring to that object. On some servers, this is referred to as creating virtual folders.

After the site is transferred to the Web server, you or your server administrator must configure the server to look in the FTP location for assets that are described as being in the URL location. For example, your site might include several stock images from your company's marketing department, such as the company logo and other approved artwork. When you create your site, you use copies of the artwork that you stored on a local disk. When you transfer your site's HTML files to the company server, however, you want to use the "official" images that have been approved and maintained by the marketing department.

Check with your server administrator to see if your site contents or remote server configuration requires a CGI directory or other aliases.

To specify the CGI-BIN directory:

  1. In Publish view, click the Settings button on the views bar.

The Publish Settings dialog appears.

  1. Choose a profile from the Profile list.
  2. Click Advanced publish settings.

The Advanced Publish Settings dialog appears.

  1. Click the Aliases tab.
  2. Enter the FTP path where CGI scripts are stored in the CGI alias field. This establishes an alias to the executable directory on the server where CGI scripts are kept.

To create other aliased folders:

  1. In Publish view, arrange the directory structure for your site the way you want it to appear on your server.
  2. Isolate the pages or assets you want to store in an aliased location into one branch of the directory structure, under a common parent folder. If necessary, create a custom folder for each set of aliased content.

If your site requires more than one alias'such as one alias for secure pages and another alias for protected assets you can create more than one custom folder.

  1. Drag pages and assets into the appropriate custom folder(s) as needed.
  2. Click Publish Settings on the views bar.

The Publish Settings dialog appears.

  1. Choose a profile from the Select Profile drop-down list.
  2. If necessary, make changes to that profile.
  3. Position the Publish Settings dialog so you have a clear view of the Contents of directory pane in Publish view. Refer to the directory structure to make sure you type the URL to your custom folder correctly.
  4. Click Advanced publish settings and then click the Aliases tab.
  5. To add a new alias, click the New Alias button. To edit an existing alias, select it from the list, then click the Edit Alias button.

The New Alias (or Edit Alias) dialog appears.

  1. Enter the absolute or relative path from your site's root folder to the custom folder containing the aliased pages and assets as the URL Path.

Refer to the directory panel as needed to enter the path exactly as it appears, including the use of uppercase and lowercase names and spaces. For example, if you create a custom folder called Companypix and place it under your Assets folder, the URL Path would be./Companypix.

  1. Enter the FTP path that you want to use to actually store that folder and its contents. This FTP location must be on the same server as the rest of the site because your publish profile only logs onto one server at a time.
  2. Click OK.
  3. To add additional aliases, click New Alias again and repeat the process.

When you publish your site, NetObjects Fusion keeps all links and references to your aliased content pointing toward the URL path, but actually stores the pages and assets in the FTP location you specified.

The server must be configured to support this alias. This is a system administrator task outside of NetObjects Fusion, so you or your server administrator must define the alias on the server.