QNAP

QTS 5.0.x

Web Server

You can use the NAS to host websites and establish an interactive website.

Enabling the Web Server

  1. Log on to QTS as administrator.
  2. Go to Control Panel > Applications > Web Server > Web Server.
  3. Select Enable Web Server.
  4. Optional: Configure the following settings.

    Setting

    User Action

    Port number

    Specify a port number.

    Note:

    The default port is 80.

    Enable HTTP compression

    Select this option to improve transfer speeds and bandwidth utilization. This setting is enabled by default.

    Warning:

    Enabling this option may lead to security risks.

    Enable secure connection (HTTPS)

    Select this option to allow HTTPS connections.

    1. Select Enable secure connection (HTTPS).

    2. Select a TLS version.

      The default TLS version is 1.2.

      Warning:

      Selecting the latest TLS version may decrease compatibility for other clients in your system.

    3. Enable strong cipher suites.

    4. Specify a port number.

      Note:

      The default port is 8081.

    5. Select Force secure connection (HTTPS) only to require all users to connect to the NAS using only HTTPS.

    Maximum number of clients

    Enter a maximum client number.

    Note:

    A client number is the number of users that are allowed to connect to the server.

    Do not allow QTS embedding in IFrames

    1. Select this option to prevent websites from embedding QTS using IFrames.

    2. Click Allowed Websites to allow a specific website to embed QTS in IFrames.

    3. The Allowed Websites window appears.

    4. Click Add to add a website to the list.

      The Add Host Name window appears.

    5. Specify a host name.

    6. Click Add.

      The host name is added to the allowed websites list.

    7. Select a website, and then click Delete to delete a website from the list.

    8. Click Apply.

    Enable X-Content-Type-Options HTTP header

    Select this option to protect your device from attacks that exploit MIME sniffing vulnerabilities.

    Enable Content-Security-Policy-HTTP header

    Select this option to protect your device from attacks that exploit Cross Site Scripting (XSS) and data injection vulnerabilities.

  5. Click Apply.
    Tip:

    To restore the default configuration settings at any time, click Restore.

    QTS enables the web server.

Modifying the php.ini Maintenance File

The php.ini file is the default PHP configuration file. To optimize your website performance, you can modify and configure the default settings in the php.ini file, such as execution time, memory limit, and maximum file upload size.

Important:

This task requires that you enable the Web Server.

For details, see Web Server.

  1. Log on to QTS as administrator.
  2. Go to Control Panel > Applications > Web Server > Web Server.
  3. Below php.ini Maintenance, select one of the following options.

    Option

    User Action

    Upload

    1. Click Upload.

      The Upload php.ini window opens.

    2. Click Browse.

      The Open window opens.

    3. Select a php.ini file.

    4. Click Upload.

      QTS uploads the file.

    Edit

    1. Click Edit.

      The Edit php.ini window opens.

    2. Edit the php.ini file.

    3. Click Apply.

      QTS saves the changes.

    Restore

    1. Click Restore.

      A confirmation message appears.

    2. Click OK.

      QTS restores the default php.ini file.

Enabling and Creating a Virtual Host

Virtual hosting allows you to use your NAS to host multiple websites.

  1. Log on to QTS as administrator.
  2. Go to Control Panel > Applications > Web Server > Virtual Host.
  3. Select Enable Virtual Host.
  4. Click Apply.

    You can now create a virtual host.

  5. Click Create a Virtual Host.

    The Advanced Options window opens.

  6. Enter a host name.
  7. Select a root directory.
  8. Select a protocol.
  9. Enter a port number.
  10. Click Apply.

    The virtual host appears in the Host Name list.