
# Test: sudo hping3 SOS.info -p 443 -S -tcp-timestamp -c 1 # Alter the web server signature sent by Apache
#Bitnami owncloud apache2 will not start full
# Send full server signature so ModSecurity can alter it Header set X-XSS-Protection "1 mode=block" Header always append X-Frame-Options SAMEORIGIN Header edit Set-Cookie ^(.*)$ $1 HttpOnly Secure # Set cookie with HttpOnly and Secure flag. # Etag allows remote attackers to obtain sensitive information # Hide Server type in the http error-pages LogFormat "%h %l %u %t \"%r\" %>s %O" common ServerAlias ServerAdmin Redirect Requests to SSLĮrrorLog $i\"" combined etc/apache2/sites-available/Īnd one which is created for the purposes of this topic: /etc/apache2/sites-available/ Let's assume there has 3 Virtual Hosts, enabled SSL, and registered private domain (SOS.info for an example): /etc/apache2/sites-available/ Or you can use Apache2 tool called a2ensite, which make the same: sudo a2ensite nf You can enable it manually through creation of "soft, symbolic link": sudo ln -s /etc/apache2/sites-available/nf /etc/apache2/sites-enabled/ conf files, based on it) and after that you have to enable it. You have to edit it (you can rename it, if you want, or make some other. It's placed in /etc/apache2/sites-available/. You should define and enable a Virtual Host (VH): And my-hostname is the "System hostname" defined in /etc/hostname.Ģ.

Where test-site is the second "localhost". # The following lines are desirable for IPv6 capable hosts.

You should configure your /etc/hosts file like that: 127.0.0.1 localhost
