Moxa V2403-C3-W-T [22/90] Apache web server

Moxa V2403-C3-W-T [22/90] Apache web server
V2403 Series Linux Software Managing Communications
3-7
You can use insserv to add this to run level.
moxa@MOXA:~# sudo insserv -v -d bonding.sh
To remove it from run level, use the following command:
moxa@MOXA:~# sudo insserv -r bonding.sh
Apache Web Server
Default Homepage
The Apache web server’s main configuration file is /etc/apache2/sites-enabled/000-default.conf, with
the default homepage located at /var/www/html/index.html.
Save your own homepage to the following directory:
/var/www/html
Save your CGI page to the following directory:
/var/www/html/cgi-bin/
Before you modify the homepage, use a browser (such as Microsoft Internet Explore or Mozilla Firefox) from
your PC to test if the Apache web server is working. Type the LAN1 IP address in the browsers address box to
open the homepage. For example, if the default IP address 192.168.3.127 is still active, type:
http://192.168.3.127/
To test the default CGI page, type:
http://192.168.3.127/cgi-bin/w3mmail.cgi
Disabling the CGI Function
The CGI function is enabled by default. If you want to disable the function, modify the file
/etc/apache2/sites-enabled/000-default.conf
1. Type
# vi/etc/apache2/sites-enabled/000-default.conf to edit the configuration file.
Comment out the following lines:
#ScriptAlias /cgi-bin/ /var/www/apache2-default/cgi-bin/
#<Directory “/var/www/apache2 default/cgi-bin/”>
# AllowOverride None
# Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
# #Order allow,deny
# Order deny,allow
# Allow from all
#</Directory>
root@MOXA:/etc# vi /etc/apache2/sites-available/default
#ScriptAlias /cgi-bin/ /var/www/apache2-default/cgi-bin/
#<Directory “/var/www/apache2 default/cgi-bin/”>
# AllowOverride None
# Options ExecCGI -MultiViews +SymLinksIFOwnerMatch
# #Order allow,deny
# Order deny,allow
# Allow from all
#</Directory>
2. Re-start the apache server.
root@Moxa:~# /etc/init.d/apache2 restart

Содержание

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

Скачать