beautypg.com

Moxa Technologies UC-7420/7410 User Manual

Page 57

background image

UC-7420/7410 User’s Manual

Managing Communication

4-5

Step 2:
Use the following commands to configure the Apache web server’s DocumentRoot:

#cd /etc/apache
#vi httpd.conf
……
DocumentRoot “/mnt/hda” //Change the document root directory

//to

your

CF

card.

……

192.168.3.127 – PuTTY

ServerRoot “/etc/apache”
PidFile /var/run/httpd.pid
ScoreBoardFile /var/run/httpd.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 0
Listen 80
User nobody
Group nobody
ServerAdmin root@localhost
ServerName localhost
DocumentRoot “/mnt/had”

Step 3:
Use the following commands to restart the Apache web server:

#cd /etc/init.d
#./apache restart

Step4:
Open your browser and connect to the UC-7420/7410 by typing the current LAN1 IP address in
the browser’s address box.

NOTE

Visit the Apache website at

http://httpd.apache.org/docs/

for more information about setting up

an Apache server.