DocumentRoot /home/page/httpdocs
ServerName yourdomain.pl
ServerAdmin youremail@yourdomain.pl
Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains;"
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/certs/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/private/server.key
SSLCertificateChainFile /etc/apache2/ssl/certs/chain.crt
ErrorLog /home/page/logs/ssl_error.log
CustomLog /home/page/logs/ssl_access.log combined
AddType application/x-httpd-php .php .php3 .php4 .inc
DirectoryIndex index.php index.php3 index.html
Options -Indexes +FollowSymLinks +Includes -ExecCGI
AllowOverride All
Require all granted
#Require all denied
#Require ip xxx
DocumentRoot /home/page/httpdocs
ServerName yourdomain.pl
ServerAdmin youremail@yourdomain.pl
Redirect permanent / https://yourdomain.pl
ErrorLog /home/page/logs/error.log
CustomLog /home/page/logs/access.log combined
AddType application/x-httpd-php .php .php3 .php4 .inc
DirectoryIndex index.php index.php3 index.html
Options -Indexes +FollowSymLinks +Includes -ExecCGI
AllowOverride All
Require all granted
#Require all granted
#Require not ip 212
#Require all denied
#Require ip xxx