User's Manual
Doc #: 1ANSU-160004
DNI SGDC-D22 User Manual
i. 25
7.5. HTTP
DCU can act as a simple HTTP WEB server, and you can follow the command below to build up your own web server.
Create a folder for WEB server and create a homepage.
# mkdir –p /home/htdocs
# echo "<html><body><h1>It works!</h1></body></html>" >> /home/htdocs/index.html
You can turn on those services on the /etc/inetd.conf to make them as auto-run daemon after booting.
# vi /etc/inetd.conf
ftp stream tcp nowait root /usr/local/sbin/pure-ftpd pure-ftpd -H &
telnet stream tcp nowait root /usr/sbin/telnetd telnetd -i
ssh stream tcp nowait root /usr/bin/dropbear dropbear -i
www stream tcp nowait root /usr/sbin/httpd httpd -i -h /home/htdocs
Figure 18, Create a simple web server.