Moxa TC-6110-T-LX [33/117] Netfilter iptables

Moxa TC-6110-T-LX [33/117] Netfilter iptables
TC-6110 Linux User's Manual Managing Communications
3-15
5. If you have CGI scripts, you must now also change the same file so that the CGI entries point to the files on the
USB device. Change your basic Apache configuration file so that it matches the lines shown in red, below:
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>
6. For webpages that will be connecting using the secure sockets layer, you will need to edit the SSL configuration
file. Open the config file using the following command:
moxa@MOXA:~#/etc# sudo vi /etc/apache2/sites-avaliable/default-ssl
7. Make the changes to your config file so that it matches the lines shown in red below:
<VirtualHost *:443>
...
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>
8. Use the following compound command to restart the Apache web server:
MOXA:~# cd /etc/init.d && apache2 restart
9. Start your browser and connect to the TC-6110-LX by typing the current LAN1 IP address in the browsers
address box.
ATTENTION
Visit the Apache website at
http://httpd.apache.org/docs/ for more information about setting up Apache
servers.
If you would like to check your website for HTML compliance, click on the following link to download the web
page test suite
from the World Wide Web Consortium:
http://www.w3.org/MarkUp/Test/HTML401.zip
Netfilter/iptables
Netfilter is an administrative tool for setting up, maintaining, and inspecting the Linux kernels packet filtering
rule tables. Netfilter is a stateful firewall, which means that it filters packets by tracking connections, rather
than each and every individual packet. For more information on connection tracking, see the section
Connection Tracking, in this same chapter, below.

Содержание

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

Скачать