전단 (N4100+_4100)차례Web Server User Guide1One of the best features of the N4100+ is its nearly unlimited expandability through modules. With new modules, users can extend what the N4100+ can do. In this guide, you will learn now to install and use Thecus’ latest module: Web Server. With it, you can use the N4100+ as a Web Server.1With firmware version 2.0.05 or above, you can install the Web Server via System > Module Mgmt. See the figure below for reference.1Next, install the Web Server module. You can get it either from the Thecus web site (http://www.thecus.com) or on the CD included with the package.1Next, click Browse locate the module file. Then click Install to complete the Web Server module installation.1Once installation is successful, the module will be displayed in the Module Management window:2To activate the Web Server module, tick the check box and then click Enable. See the figure below for reference:2The figure below shows the status of Web Server module after installation:3Setting up the Web Server function can be performed either via the module management UI or through the Main Menu under the Network category if the Web Server module is set to “Enable”. If the Web Server module set to “Disable”, then it won’t appear in the Main Menu. Please refer the figure below:3After the Web Server module is executed, you will see the Web Server window appear as below:4The Web Server will use the following settings by default:41. Port usage: 8142. System share folder: naswebsite (Please refer to the screenshot below)43. Subfolders of the system share folder: “conf”, “logs” and “www”.44. Default Web Server User: nobody.55. Default Web Server User Priviliges: Public5To start the Web Server service, simply click Start on the Web Server window. You can refer the screen shot below for details.5In the above diagram, the Web Server has started with the default user “nobody” with “Public” privileges as mentioned earlier. This means that anyone can access the Web Server system folder “naswebsite”, its subfolders, and files. As this is potentially a serious security threat, we strongly suggest that all users are properly configured with ACL privileges.5To do this, you may change “naswebsite” system folder status from “Public” to “ACL” by navigating to Storage > Folder from the Main Menu. Then, assign user(s) with read/write privileges for the “naswebsite” system folder.6After you have done this, you need to modify “httpd.conf” file, which is located at \\naswebsite\conf\httpd.conf. The “User nobody” needs to be changed to a user you have assigned for “naswebsite” system folder . For example, if “david” is a user with read/write privileges for the “naswebsite” system folder, you can change “User nobody” to “User David”. Please refer the screenshot below for reference.6You may also like to change Web Server port number from the default 81 to another. Once again, you can change it from “httpd.conf” file. See the screenshot below.6Please always stop the web server service before making any modifications to the “httpd.conf” file. After completing your modifications, restart the web server to activate service. Do not make any changes to the “httpd.conf” file while the web server is running or it could cause unexpected errors7To verify that the “httpd.conf” file has been correctly modified, click the Test button from Web Server window to have the system check the syntax of the configuration file and report its status.7PHP v5.0.5 and SQL-Lite v2.8.14 Web Server Support7You may also have PHP and SQL-Lite work together with this Web Server module.7Below is an example of how to have your PHP program retrieve SQL lite supported information.7Create a file named phpinfo.php, and place this file under the \\<NAS-IP>\naswebsite\www directory. The phpinfo.php should contain the following:7<?php phpinfo();?>7Then, you can get information from the currently supported SQL Lite version by using the URL: http://Web_Server_IP:81/phpinfo.php.7크기: 341킬로바이트페이지: 8Language: English매뉴얼 열기