Ubuntu 14.04
Sponsored Link

Install Apache2
2014/04/30
 
Install Apache2 to Configure HTTP Server. HTTP uses 80/TCP.
[1] Install Apache2.
root@www:~#
apt-get -y install apache2
[2] Configure Apache2.
root@www:~#
vi /etc/apache2/conf-enabled/security.conf
# line 26: change

ServerTokens
Prod
# line 37: change

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

DirectoryIndex
index.html index.htm
root@www:~#
vi /etc/apache2/apache2.conf
# line 70: add server name

ServerName www.srv.world
root@www:~#
vi /etc/apache2/sites-enabled/000-default.conf
# line 11: change admin email address

ServerAdmin
webmaster@srv.world
root@www:~#
/etc/init.d/apache2 restart

 * Restarting web server apache2
   ...done.
[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
 
Tweet