とらりもんHOME  Index  Search  Changes  Login

apache

Ubuntu 18.04

activate public_html of each user:

$ sudo a2enmod userdir
$ sudo systemctl restart apache2

Ubuntu 14.04

Security

In case you get the following warning in the security check service:

It is possible to guess the remote device type.
It is possible to guess the remote operating system.
The name of the Linux distribution running on the remote host was found in the banner of the web server.

You should do:

sudo vi /etc/apache2/apache2.conf
ServerSignature Off
ServerTokens Prod

CGI

sudo a2enmod cgi
sudo a2enmod info
sudo a2enmod rewrite

virtual host

(in case of hosting "another site")

$ sudo vi /etc/apache2/sites-available/000-default.conf
<VirtualHost *:80>
   DocumentRoot /home/another_site/public_html
   ServerName another_site.hostname.tsukuba.ac.jp
# Other directives here
</VirtualHost>
Last modified:2021/08/02 12:34:33
Keyword(s):
References:[とらりもんHOME]