Moxa V2406-24I-CT-LX Руководство по программной части (Linux) онлайн [32/81] 171070

Moxa V2422-LX Руководство по программной части (Linux) онлайн [32/81] 170754
V2406/2422/2426 Linux User’s Manual Managing Communications
3-8
2. Uncompress the zip file to your desktop PC, and then use FTP to transfer it to the V2406/2422/2426-LX’s
/media/usb0 directory.
3. Mount the root file system with write permission.
MOXA:~# mount -o remount,rw /dev/hda1 /
4. Type # vi/etc/apache2/sites-enabled/000-default to edit the configuration file.
MOXA:/etc# vi /etc/apache2/sites-enabled/000-default
5. Change the DocumentRoot directory to the USB storage directory /media/usb0/www.
...
<VirtualHost *:80>
...
...
DocumentRoot /media/usb0/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
...
...
ScriptAlias /cgi-bin/ /media/usb0/www/cgi-bin/
<Directory “/media/usb0/www/cgi-bin/”>
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
...
</VirtualHost>
...
<VirtualHost *:443>
...
...
DocumentRoot /media/usb0/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
...
...
ScriptAlias /cgi-bin/ /media/usb0/www/cgi-bin/
<Directory “/media/usb0/wwwz/cgi-bin/”>
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
...
</VirtualHost>
6. Use the following commands to restart the Apache web server:
#cd /etc/init.d
#./apache2 restart

Содержание

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

Скачать