Moxa V2616A-C8-CT-W7E Руководство по программной части (Linux) онлайн [30/111] 171051

Moxa V2616A-C8 Руководство по программной части (Linux) онлайн [30/111] 171047
V2616A Linux Managing Communications
3-8
3. Mount the root file system with write permission.
MOXA:~# mount -o remount,rw /
4. Type # vi /etc/apache2/sites-avaliable/default and # vi
/etc/apache2/sites-avaliable/default-ssl to edit the configuration file.
MOXA:/etc# MOXA:/etc# vi /etc/apache2/sites-avaliable/default
MOXA:/etc# vi /etc/apache2/sites-avaliable/default-s
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>
“etc/apache2/sites-avaliable/default”
<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>
/etc/apache2/sites-avaliable/default-ssl”
6. Use the following commands to restart the Apache web server:
#cd /etc/init.d
#./apache2 restart
7. Start your browser and connect to the V2616A-LX by typing the current LAN1 IP address in the browsers
address box.
8. Remember to execute umount /to change the root directory back to Read-only mode.

Содержание

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

Скачать