|
| 1 | +ServerTokens Prod |
| 2 | +ServerSignature Off |
| 3 | + |
| 4 | +<VirtualHost *:80> |
| 5 | + ServerAdmin webmaster@localhost |
| 6 | + ServerName infinityloop.cz |
| 7 | + ServerAlias www.infinityloop.cz |
| 8 | + |
| 9 | + DocumentRoot /var/www/html/infinityloop |
| 10 | + |
| 11 | + ErrorLog ${APACHE_LOG_DIR}/error.log |
| 12 | + CustomLog ${APACHE_LOG_DIR}/access.log combined |
| 13 | + |
| 14 | + <Directory /var/www/html/infinityloop> |
| 15 | + Options FollowSymLinks |
| 16 | + AllowOverride All |
| 17 | + </Directory> |
| 18 | + |
| 19 | + RewriteEngine On |
| 20 | + RewriteCond %{SERVER_NAME} =www.infinityloop.cz [OR] |
| 21 | + RewriteCond %{SERVER_NAME} =infinityloop.cz |
| 22 | + RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] |
| 23 | +</VirtualHost> |
| 24 | + |
| 25 | +<VirtualHost *:443> |
| 26 | + Protocols h2 http/1.1 |
| 27 | + |
| 28 | + ServerAdmin webmaster@localhost |
| 29 | + ServerName infinityloop.cz |
| 30 | + ServerAlias www.infinityloop.cz |
| 31 | + |
| 32 | + DocumentRoot /var/www/html/infinityloop |
| 33 | + |
| 34 | + ErrorLog ${APACHE_LOG_DIR}/error.log |
| 35 | + CustomLog ${APACHE_LOG_DIR}/access.log combined |
| 36 | + |
| 37 | + <Directory /var/www/html/infinityloop> |
| 38 | + Options FollowSymLinks |
| 39 | + AllowOverride All |
| 40 | + </Directory> |
| 41 | + |
| 42 | + Include /etc/letsencrypt/options-ssl-apache.conf |
| 43 | + SSLCertificateFile /etc/letsencrypt/live/infinityloop.cz/fullchain.pem |
| 44 | + SSLCertificateKeyFile /etc/letsencrypt/live/infinityloop.cz/privkey.pem |
| 45 | + |
| 46 | + Header always set Feature-Policy "accelerometer 'none'; camera 'none'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; payment 'none'; usb 'none'" |
| 47 | + Header always set Content-Security-Policy "default-src 'none'; style-src 'self'; img-src 'self'; script-src 'none'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; form-action 'self'" |
| 48 | + Header always set X-XSS-Protection 1;mode=block |
| 49 | + Header always set X-Content-Type-Options nosniff |
| 50 | + Header always set X-Frame-Options SAMEORIGIN |
| 51 | + Header always set Referrer-Policy "no-referrer" |
| 52 | + Header always set X-Powered-By "infinityloop.cz" |
| 53 | + Header always set Strict-Transport-Security "max-age=31536000;" "expr=%{HTTPS} == 'on'" |
| 54 | + Header always set Expect-CT enforce,max-age=2592000 |
| 55 | +</VirtualHost> |
0 commit comments