root@masatermica:/home/adminblog# cat /etc/apache2/sites-enabled/masatermica.com.conf
<VirtualHost 45.82.72.84:80>
SuexecUserGroup "#1004" "#1003"
ServerName masatermica.com
ServerAlias www.masatermica.com
ServerAlias mail.masatermica.com
ServerAlias webmail.masatermica.com
ServerAlias admin.masatermica.com
DocumentRoot /home/adminblog/public_html
ErrorLog /var/log/virtualmin/masatermica.com_error_log
CustomLog /var/log/virtualmin/masatermica.com_access_log combined
ScriptAlias /cgi-bin/ /home/adminblog/cgi-bin/
ScriptAlias /awstats/ /home/adminblog/cgi-bin/
DirectoryIndex index.php index.php4 index.php5 index.htm index.html
<Directory /home/adminblog/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddType application/x-httpd-php .php
AddHandler fcgid-script .php
AddHandler fcgid-script .php7.4
FCGIWrapper /home/adminblog/fcgi-bin/php7.4.fcgi .php
FCGIWrapper /home/adminblog/fcgi-bin/php7.4.fcgi .php7.4
<Directory /home/adminblog/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.masatermica.com
RewriteRule ^(?!/.well-known)(.) https://masatermica.com:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.masatermica.com
RewriteRule ^(?!/.well-known)(.) https://masatermica.com:10000/ [R]
RemoveHandler .php
RemoveHandler .php7.4
FcgidMaxRequestLen 1073741824
AuthName "masatermica.com statistics"
AuthType Basic
AuthUserFile /home/adminblog/.awstats-htpasswd
require valid-user
Alias /dav /home/adminblog/public_html
<Location /dav>
DAV on
AuthType Basic
AuthName "masatermica.com"
AuthUserFile /home/adminblog/etc/dav.digest.passwd
Require valid-user
ForceType text/plain
Satisfy All
RemoveHandler .php
RemoveHandler .php7.4
RewriteEngine off
RewriteCond %{SERVER_NAME} =webmail.masatermica.com [OR]
RewriteCond %{SERVER_NAME} =mail.masatermica.com [OR]
#RewriteCond %{SERVER_NAME} =masatermica.com [OR]
RewriteCond %{SERVER_NAME} =www.masatermica.com [OR]
RewriteCond %{SERVER_NAME} =admin.masatermica.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
RewriteCond %{SERVER_NAME} =masatermica.com
RewriteRule ^ https://%{SERVER_NAME}/blog%{REQUEST_URI} [END,NE,R=permanent]
IPCCommTimeout 301
root@masatermica:/home/adminblog# cat /etc/apache2/sites-enabled/masatermica.online.conf
<VirtualHost 45.82.72.84:80>
SuexecUserGroup "#1000" "#1000"
ServerName masatermica.online
ServerAlias www.masatermica.online
ServerAlias mail.masatermica.online
ServerAlias webmail.masatermica.online
ServerAlias admin.masatermica.online
DocumentRoot /home/masatermica/public_html
ErrorLog /var/log/virtualmin/masatermica.online_error_log
CustomLog /var/log/virtualmin/masatermica.online_access_log combined
ScriptAlias /cgi-bin/ /home/masatermica/cgi-bin/
ScriptAlias /awstats/ /home/masatermica/cgi-bin/
DirectoryIndex index.php index.php4 index.php5 index.htm index.html
<Directory /home/masatermica/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddType application/x-httpd-php .php
<Directory /home/masatermica/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.masatermica.online
RewriteRule ^(?!/.well-known)(.) https://masatermica.online:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.masatermica.online
RewriteRule ^(?!/.well-known)(.) https://masatermica.online:10000/ [R]
RemoveHandler .php
RemoveHandler .php7.4
AuthName "masatermica.online statistics"
AuthType Basic
AuthUserFile /home/masatermica/.awstats-htpasswd
require valid-user
<FilesMatch .php$>
SetHandler proxy:fcgi://localhost:8000
<VirtualHost 45.82.72.84:443>
SuexecUserGroup "#1000" "#1000"
ServerName masatermica.online
ServerAlias www.masatermica.online
ServerAlias mail.masatermica.online
ServerAlias webmail.masatermica.online
ServerAlias admin.masatermica.online
DocumentRoot /home/masatermica/public_html
ErrorLog /var/log/virtualmin/masatermica.online_error_log
CustomLog /var/log/virtualmin/masatermica.online_access_log combined
ScriptAlias /cgi-bin/ /home/masatermica/cgi-bin/
ScriptAlias /awstats/ /home/masatermica/cgi-bin/
DirectoryIndex index.php index.php4 index.php5 index.htm index.html
<Directory /home/masatermica/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddType application/x-httpd-php .php
<Directory /home/masatermica/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.masatermica.online
RewriteRule ^(?!/.well-known)(.) https://masatermica.online:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.masatermica.online
RewriteRule ^(?!/.well-known)(.) https://masatermica.online:10000/ [R]
RemoveHandler .php
RemoveHandler .php7.4
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
AuthName "masatermica.online statistics"
AuthType Basic
AuthUserFile /home/masatermica/.awstats-htpasswd
require valid-user
<FilesMatch .php$>
SetHandler proxy:fcgi://localhost:8000
#SSLCACertificateFile /home/masatermica/sslComodo/SectigoRSADomainValidationSecureServerCA.crt
#X-Frame-Options: "ALLOWALL"
SSLCertificateFile /etc/letsencrypt/live/masatermica.online/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/masatermica.online/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
root@masatermica:/home/adminblog# cat /etc/apache2/sites-enabled/masatermica.com-le-ssl.conf
<VirtualHost 45.82.72.84:443>
SuexecUserGroup "#1004" "#1003"
ServerName masatermica.com
ServerAlias www.masatermica.com
ServerAlias mail.masatermica.com
ServerAlias webmail.masatermica.com
ServerAlias admin.masatermica.com
DocumentRoot /home/adminblog/public_html
ErrorLog /var/log/virtualmin/masatermica.com_error_log
CustomLog /var/log/virtualmin/masatermica.com_access_log combined
ScriptAlias /cgi-bin/ /home/adminblog/cgi-bin/
ScriptAlias /awstats/ /home/adminblog/cgi-bin/
DirectoryIndex index.php index.php4 index.php5 index.htm index.html
<Directory /home/adminblog/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddType application/x-httpd-php .php
AddHandler fcgid-script .php
AddHandler fcgid-script .php7.4
FCGIWrapper /home/adminblog/fcgi-bin/php7.4.fcgi .php
FCGIWrapper /home/adminblog/fcgi-bin/php7.4.fcgi .php7.4
<Directory /home/adminblog/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
RewriteEngine on
Some rewrite rules in this file were disabled on your HTTPS site,
because they have the potential to create redirection loops.
RemoveHandler .php
RemoveHandler .php7.4
FcgidMaxRequestLen 1073741824
AuthName "masatermica.com statistics"
AuthType Basic
AuthUserFile /home/adminblog/.awstats-htpasswd
require valid-user
Alias /dav /home/adminblog/public_html
DAV on
AuthType Basic
AuthName "masatermica.com"
AuthUserFile /home/adminblog/etc/dav.digest.passwd
Require valid-user
ForceType text/plain
Satisfy All
RemoveHandler .php
RemoveHandler .php7.4
RewriteEngine off
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/masatermica.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/masatermica.com/privkey.pem