Moxa DA-662A-I-8-LX [35/63] Web service apache

Moxa DA-662A-I-8-LX [35/63] Web service apache
DA-662A Series Software Managing Communications
4-3
nameserver 140.115.1.31
nameserver 140.115.236.10
root@Moxa:/etc#
/etc/nsswitch.conf
This file defines the sequence to resolve the IP address by using /etc/hosts file or /etc/resolv.conf.
Web ServiceApache
The Apache web server‘s main configuration file is /etc/apache/conf/httpd.conf, with the default
homepage located at /home/httpd/htdocs/index.html. Save your own homepage to the following
directory:
/home/httpd/html/
Save your CGI page to the following directory:
/home/httpd/cgi-bin/
Before you modify the homepage, use a browser (such as Microsoft Internet Explore or Mozilla Firefox) from
your PC to test if the Apache Web Server is working. Type the LAN1 IP address in the browser‘s address box to
open the homepage. E.g., if the default IP address is still active, type http://host-ip-address in address box.
To open the default CGI test script report page, type http://host-ip-address/cgi-bin/test-cgi in your
browser‘s address box.
NOTE
The CGI function is enabled by default. If you want to disable the function, modify the file
/etc/apache/conf/httpd.conf. When you develop your own CGI application, make sure your CGI file is
executable.
192.168.3.127 - PuTTY
root@Moxa: /home/httpd/cgi-bin# ls al
drwxrxr-x 2 root root 0 Aug 24 1999
drwxrxr-x 5 root root 0 Nov 5 16:16
-rwxrxr-x 1 root root 757 Aug 24 1999 test-cgi
root@Moxa: /home/httpd/cgi-bin#

Содержание

Похожие устройства

Скачать