Apache2 : Install2024/05/17 | 
| 
 Install Apache2 to Configure HTTP Server.  | 
|
| [1] | Install Apache2. | 
| 
root@www:~#  apt -y install apache2  
 | 
| [2] | Configure Apache2. | 
| 
 
root@www:~#  
vi /etc/apache2/conf-enabled/security.conf  # line 12 : change ServerTokens Prod 
root@www:~#  
vi /etc/apache2/mods-enabled/dir.conf  # 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 to specify server name ServerName www.srv.world 
root@www:~#  
vi /etc/apache2/sites-enabled/000-default.conf  # line 11 : change to webmaster's email ServerAdmin webmaster@srv.world 
systemctl restart apache2   | 
| [3] | Access to [http://(your server's hostname or IP address)/] with web browser. That's OK if following page is shown. (default page) | 
 
 | 
| Sponsored Link | 
| 
 |