Apache Settings Virtualhost

Here an example of a setting for Apache virtualhost

  1. First of all install apache2 if is not installed
  2. then chose www-data as owner of the directory var/www recursively
  3. create the directory www.esempio.it
  4. create the directory www.esempio.it/cgi-bin
  5. for log files create the directory /var/log/www.esempio.it

Now create the config file in apache2 dir

inside www.esempio.it you have all these elements >>>

CGI Directory

Logfiles

Create link from available-site to enabled-site using these useful Debian command a2dissite and a2ensite:

remove default settings

add your new site setting