Updated on 2023-12-04 GMT+08:00

Setting Up a File Server

Scenario

Set up a file server.

Prerequisites

  • A Windows Server ECS is available. For details, see Creating an ECS.
  • The VPC of the ECS must be the same as that of the Workspace tenant. If different VPCs are used, you need to configure a VPC peering connection and ensure that the IP address segments do not conflict.

Procedure

  1. Log in to the Workspace console.
  2. In the navigation pane on the left, click and choose Elastic Cloud Server.
  3. Locate the row that contains the target ECS, click Remote Login in the Operation column, and enter the username and password created during ECS purchase.

    Installing the IIS management console

  4. Click in the lower left corner of the ECS and choose Server Manager. The Server Manager page is displayed.
  5. On the Server Manager page, click Add role and features. The Add Roles and Features Wizard dialog box is displayed, as shown in Figure 1.

    Figure 1 Installation wizard

  6. Click Next as prompted. On the Server Roles page, select Web Server (IIS). In the displayed Add features that are required for Web Server (IIS) dialog box, click Add Features, as shown in Figure 2.

    Figure 2 Configuring a server role

  7. Click Next. On the Role Services page, ensure that IIS Management Console under Management Tools has been selected, as shown in Figure 3.

    Figure 3 IIS management console

  8. Click Next to switch to the confirmation page. Confirm the information and click Install. Wait for the installation result. If the information shown in Figure 4 is displayed, the installation is successful.

    Figure 4 Example installation result

    Configuring the IIS console (Configuring applications)

  9. Click in the lower left corner of the ECS and choose Administrative Tools > Internet Information Service (IIS) Manager. The Internet Information Service (IIS) Manager page is displayed, as shown in Figure 5.

    Figure 5 IIS Manager

  10. On the Internet Information Services (IIS) Manager page, expand the server name and Sites, right-click Default Web Site and select Remove from the shortcut menu.
  11. Right-click Sites and choose Add Website from the shortcut menu to configure website information.

    • Site Name: This parameter is user-defined.
    • Physical path: path for storing the local application installation package.
    • Type: Select http.
    • IP address: Select the ECS IP address from the drop-down list box.
    • Port: Configure this parameter as required.
    • Host name: This parameter is left blank by default.

  12. After the configuration is complete, click OK. The website has been added, as shown in Figure 6.

    Figure 6 Adding a website

  13. Click the website added in 12. On the home page of the website, double-click Configuration Editor.
  14. On the Configuration Editor page, click on the right of Section:. Choose system.webServer > directoryBrowse, change the value of enabled from False to True, and click Apply, as shown in Figure 7.

    Figure 7 Configuration editor

    Verifying (applications)

  15. On the ECS, click to open Internet Explorer. In the address box, enter the server address (the type and IP address configured in 11, for example, http://192.168.1.1) to open the application, as shown in Figure 8.

    Figure 8 Opening an application

    Adding an application

  16. Log in to the Workspace console.
  17. In the navigation pane, choose App Center.

    The App Center page is displayed.

  18. Click Add App in the upper right corner.

    The Add App page is displayed.

  19. On the displayed page, configure application parameters by referring to Table 1. Set App Source to Link. The link address is the server address obtained in 11.

    The link address must end with the file name extension. The format is https://Absolute path of the .exe file, for example, https://xxx/7z2201-x64.exe.

  20. Click OK.

(Optional) IP and domain restrictions

  • The administrator can configure the IP and domain restrictions to restrict the IP addresses allowed to access the client.
  • The file server has been set up by referring to 1 to 8.
  1. .
  2. In the navigation pane on the left, click and choose Elastic Cloud Server.
  3. Locate the row that contains the target ECS, click Remote Login in the Operation column, and enter the username and password created during ECS purchase.
  4. Click in the lower left corner of the ECS and choose Server Manager. The Server Manager page is displayed.
  5. On the Server Manager page, click Add role and features. The Add Roles and Features Wizard dialog box is displayed. Click Next as prompted.
  6. On the Server Roles page, select Web Server (IIS), choose Web Server > Security, and select IP and Domain Restrictions, as shown in Figure 9.

    Figure 9 Adding a server role

  7. Click Next as prompted. On the confirmation page, ensure that IP and Domain Restrictions is selected under Web Server (IIS), as shown in Figure 10.

    Figure 10 Confirmation page

  8. Click Install.
  9. Click in the lower left corner of the ECS and choose Administrative Tools > Internet Information Service (IIS) Manager. The Internet Information Service (IIS) Manager page is displayed. Click the host name, as shown in Figure 11.

    Figure 11 Host name home page

  10. Double-click IP Address and Domain Restrictions on the host name page. The IP Address and Domain Restrictions page is displayed, as shown in Figure 12.

    Figure 12 IP address and domain restrictions

  11. In the upper right corner of the IP Address and Domain Restrictions page, click Add Allow Restriction Rule in the Operation column. The Add Allow Restriction Rule dialog box is displayed, as shown in Figure 13.

    Figure 13 Adding allow restriction rules

  12. In the Add Allow Restriction Rule dialog box, select and configure IP address range, as shown in Figure 14.

    • IP address range: IP address segment, for example, 192.168.1.1.
    • Mask or Prefix: Set this parameter to the subnet mask, for example, 255.255.255.0.
    Figure 14 Configuring restriction rules

    It is recommended that the IP address range be the same as the network segment of the subnet in Workspace > Tenant Configuration. If not, the cloud desktop may fail to access the file server.

  13. Click OK.