Debian 7.0
Sponsored Link

Install Apache22013/05/11

 
This is an example to build Web Server. Install Apache2 for it. In addition to do it, it's also neccessary to configure router so that TCP and UDP packets to 80 and 443 can pass through.
[1] Install Apache2
root@www:~#
aptitude -y install apache2
[2] Configure Apache2.
root@www:~#
vi /etc/apache2/conf.d/security
# line 27: change

ServerTokens
Prod
# line 39: change

ServerSignature
Off
root@www:~#
vi /etc/apache2/mods-enabled/dir.conf
# line 3: add file name that it can access only with directory's name

DirectoryIndex
index.html index.htm
root@www:~#
vi /etc/apache2/sites-available/default
# line 2: change to webmaster's email

ServerAdmin
webmaster@srv.world
# line 3: add server's hostname

ServerName www.srv.world
# line 11: change

AllowOverride
All
root@www:~#
/etc/init.d/apache2 restart

Restarting web server: apache2 ... waiting .
[3] Access to "http://(your server's hostname or IP address)/" with web browser. It's OK if following page is shown. (default page)
Matched Content