Moxa TC-6110-LX [31/117] Setting up cgi

Moxa TC-6110-LX [31/117] Setting up cgi
TC-6110 Linux User's Manual Managing Communications
3-13
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
Apache Web Server
The Apache config directory houses four basic directories: sites-enabled, mods-enabled, sites-available, and
mods-available. The sites-enabled directory is where active websites are enabled; this is done by creating a
symlink into the sites-available directory. Sites-available is a repository for all sites, whether inactive or
active. The mods-available directory houses Apache software modules, which allow administrators to
adjust the size and features of the Apache webserver to the particular needs of the application. The
mods-enabled directory enables modules to be loaded by, again, symlinking back to the relevant module
located in the mods-available directory.
ATTENTION
There are many Apache modules that may be of use to administrators in need of customizations to their
webserver, such as speeding up CGI, or building heightened security. Webserver modules and features are
beyond the scope of this manual. If you w
ish to find a complete list and full documentation for the native
modules, please refer to the Apache webserver documentation, found here:
http://httpd.apache.org/modules/
For a more completely list of availab
le modules that includes third-party modules, you may refer to Wikipedia:
http://en.wikipedia.org/wiki/List_of_Apache_modules
Default Homepage
The Apache web server’s main configuration file is /etc/apache2/sites-enabled/000-default, with
the default homepage located at
/var/www/index.html.
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 browsers address box to
open the homepage. If the default address hasn’t changed, then when you type
http://192.168.3.127/
in the address bar of your web browser you should see Apache’s default web page.
Configuring the Common Gateway Interface (CGI)
Setting Up CGI
CGI comes already enabled. The root CGI directory (where you should put CGI scripts) is /usr/lib/cgi-bin.
You may change this to
/var/www/cgi-bin, if you so desire.
ATTENTION
If you have more questions about setting up CGI on Apache 2.2, you may refer to this web page:
http://httpd.apache.org/docs/2.2/howto/cgi.html

Содержание

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

Скачать