Moxa V2401-CE [36/108] Saving web pages to a usb storage device

Moxa V2401-CE [36/108] Saving web pages to a usb storage device
V2401/2402 Series Linux User’s Manual Managing Communications
3-9
3. After you finish writing or modifying the code, remember to execute “umount /” to change the
root directory back to Read-only mode.
4. Re-start the apache server.
ATTENTION
When you develop your own CGI application, make sure your CGI file is executable.
Saving Web Pages to a USB Storage Device
Some applications may have web pages that take up a lot of memory space. This section describes
how to save web pages to the USB mass storage device, and then configure the Apache web
server’s DocumentRoot to open these pages. The files used in this example can be downloaded
from Moxa’s website.
1. Prepare the web pages and then save the pages to the USB storage device. Click on the
following link to download the web page test suite:
http://www.w3.org/MarkUp/Test/HTML401.zip.
2. Un
compress the zip file to your desktop PC, and then use FTP to transfer it to the
V2401/2402-LX’s /media/usb0 directory.
3. Mount the root file system with write permission.
4. Type # vi/etc/apache2/sites-enabled/000-default to edit the configuration file.
MOXA:~#
u
mount /
MOXA:~#
/
etc/init.d/apache2 restart
MOXA:~# mount -o remount,rw /dev/
s
d
a
1
/
MOXA:/etc# vi /etc/apache2/sites
-
e
nabled/000
-
d
efault

Содержание

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

Скачать