Moxa V2416-XPE Руководство по программной части (Linux) онлайн [32/88] 171076

Moxa V2416-T-LX Руководство по программной части (Linux) онлайн [32/88] 171075
V2416 Linux User's Manual Managing Communications
3-8
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
7. Start your browser and connect to the V2416-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.
MOXA:~# umount /
9. Re-start the apache server.
MOXA:~# /etc/init.d/apache2 restart

Содержание

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

Скачать