<VirtualHost :80>
ServerAdmin webmaster@example.com
DocumentRoot "/www/wwwroot/ego.katowice.pl"
ServerName 5a8a7141.ego.katowice.pl
ServerAlias ego.katowice.pl www.ego.katowice.pl
#errorDocument 404 /404.html
ErrorLog "/www/wwwlogs/ego.katowice.pl-error_log"
CustomLog "/www/wwwlogs/ego.katowice.pl-access_log" combined
#HTTP_TO_HTTPS_START
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{SERVER_PORT} !443$
RewriteRule (.) https://%{SERVER_NAME}$1 [L,R=301]
</IfModule>
#HTTP_TO_HTTPS_END
#DENY FILES
<Files ~ (\.user.ini|\.htaccess|\.git|\.env|\.svn|\.project|LICENSE|README.md)$>
Order allow,deny
Deny from all
</Files>
#PHP
<FilesMatch \.php$>
SetHandler "proxy:unix:/tmp/php-cgi-83.sock|fcgi://localhost"
</FilesMatch>
#PATH
<Directory "/www/wwwroot/ego.katowice.pl">
SetOutputFilter DEFLATE
Options FollowSymLinks
AllowOverride All
Require all granted
DirectoryIndex index.php index.html index.htm default.php default.html default.htm
</Directory>
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster@example.com
DocumentRoot "/www/wwwroot/ego.katowice.pl/"
ServerName SSL.ego.katowice.pl
ServerAlias www.ego.katowice.pl ego.katowice.pl
#errorDocument 404 /404.html
ErrorLog "/www/wwwlogs/ego.katowice.pl-error_log"
CustomLog "/www/wwwlogs/ego.katowice.pl-access_log" combined
#SSL
SSLEngine On
SSLCertificateFile /www/server/panel/vhost/cert/ego.katowice.pl/fullchain.pem
SSLCertificateKeyFile /www/server/panel/vhost/cert/ego.katowice.pl/privkey.pem
SSLCipherSuite EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5
SSLProtocol All -SSLv2 -SSLv3 -TLSv1
SSLHonorCipherOrder On
#PHP
<FilesMatch \.php$>
SetHandler "proxy:unix:/tmp/php-cgi-83.sock|fcgi://localhost"
</FilesMatch>
#DENY FILES
<Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
Order allow,deny
Deny from all
</Files>
#PATH
<Directory "/www/wwwroot/ego.katowice.pl/">
SetOutputFilter DEFLATE
Options FollowSymLinks
AllowOverride All
Require all granted
DirectoryIndex index.php index.html index.htm default.php default.html default.htm
</Directory>
</VirtualHost>
This is config from 1 of my site - on this site i have a problem (and more)