DA-681 Linux
Managing Communications
3-8
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 -MultSymLinksIfOwnerMatch
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.
Open your browser and connect to the DA-681-LX by typing the current LAN1 IP address in the browser’s
address box.
8.
After finishing modification or writing, 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
ATTENTION
Visit the Apache website at http://httpd.apache.org/docs/ for more information about setting up Apache
servers.
IPTABLES
IPTABLES is an administrative tool for setting up, maintaining, and inspecting the Linux kernel’s IP packet filter
rule tables. Several different tables are defined, with each table containing built-in chains and user-defined
chains.
Each chain is a list of rules that apply to a certain type of packet. Each rule specifies what to do with a matching
packet. A rule (such as a jump to a user-defined chain in the same table) is called a
target
.