Multi-Tech Systems MTS2SA-T ユーザーズマニュアル

ページ / 181
Chapter 12 – HTTP Server 
Multi-Tech Systems, Inc. MultiConnect Serial-to-Serial Adapter User Guide (S000354A) 
141
 
 
Uploading the Web Page and Parameter List  
The Host Device Files (.HTML, default parameter List….) can be uploaded to the MultiConnect IP  
using TFTP CLIENT.  
It is possible to upload these files in two different ways. In either case, file naming and file size 
conventions described previously must be followed. 
• 
Compressed and Zipped formats (tar.gz) or 
• 
Uncompressed individual files. 
Uploading Compressed and Zipped Files (http.tar.gz) 
In order to load files in the compressed (http.tar.gz) format, the following directory structure has to 
be strictly followed.  
http/ 
      HTML/ 
            
http-s0.HTML 
            
http-host-param 
            
http-*.HTML 
 cgi-bin/ 
   
cgi-* (Supports only Shell scripts) 
• 
Place the HTML files and the default serial device parameter list in the /http/HTML 
directory. All the HTML file-names should be prefixed with http-.  
• 
Place the CGI scripts in the /http/cgi-bin directory. All the CGI scripts should be prefixed 
with cgi-
• 
Create an http.tar.gz from the source directory (http/). This file should be in the GZIP 
format only. 
• 
Upload http.tar.gz using any TFTP Client with binary mode set. 
• 
Use the following commands to upload http.tar.gz to the MultiConnect IP.  
 
[root@admin /root]# tftp 192.168.2.1 (Address of the MultiConnect IP) 
 tftp>trace 
 tftp>binary 
 
 tftp>verbose 
 tftp>put 
http.tar.gz 
 tftp>quit 
 
 
Upload Uncompressed Files Individually 
• 
Use TFTP client with binary mode set. 
• 
Upload HTML files, the default serial device parameter list, and the CGI bin files 
individually using the following commands: 
 
tftp 192.168.2.92 (IP-Address of the MultiConnect IP) 
 tftp>verbose 
 tftp>binary 
 tftp>trace 
 tftp>put 
http-host-param 
 tftp>put 
http-s0.HTML. 
• 
Upload all the files using the similar command.