File: //etc/apache2/sites-enabled/phanmemquanlyphongkham.net.conf
<VirtualHost 139.99.89.198:80 [2402:1f00:8000:800::3c91]:80>
ServerName phanmemquanlyphongkham.net
ServerAlias www.phanmemquanlyphongkham.net
ServerAlias mail.phanmemquanlyphongkham.net
ServerAlias webmail.phanmemquanlyphongkham.net
ServerAlias admin.phanmemquanlyphongkham.net
DocumentRoot /home/phongkham/public_html
ErrorLog /var/log/virtualmin/phanmemquanlyphongkham.net_error_log
CustomLog /var/log/virtualmin/phanmemquanlyphongkham.net_access_log combined
DirectoryIndex index.php index.htm index.html
<Directory /home/phongkham/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch
Require all granted
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
AllowOverride None
</Directory>
<Directory /home/phongkham/cgi-bin>
Require all granted
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
</Directory>
ProxyPass /.well-known !
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.phanmemquanlyphongkham.net
RewriteRule ^(?!/.well-known)(.*) https://phanmemquanlyphongkham.net:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.phanmemquanlyphongkham.net
RewriteRule ^(?!/.well-known)(.*) https://phanmemquanlyphongkham.net:10000/ [R]
RemoveHandler .php
RemoveHandler .php7.4
RemoveHandler .php8.1
<FilesMatch \.php$>
SetHandler proxy:unix:/run/php/1712822917271695.sock|fcgi://127.0.0.1
</FilesMatch>
ScriptAlias /awstats /home/phongkham/cgi-bin/awstats.pl
RedirectMatch ^/awstats$ /awstats/
<Files awstats.pl>
AuthName "phanmemquanlyphongkham.net statistics"
AuthType Basic
AuthUserFile /home/phongkham/.awstats-htpasswd
require valid-user
</Files>
AliasMatch ^/.*$ /home/phongkham/public_html/disabled_by_virtualmin.html
</VirtualHost>
<VirtualHost 139.99.89.198:443 [2402:1f00:8000:800::3c91]:443>
ServerName phanmemquanlyphongkham.net
ServerAlias www.phanmemquanlyphongkham.net
ServerAlias mail.phanmemquanlyphongkham.net
ServerAlias webmail.phanmemquanlyphongkham.net
ServerAlias admin.phanmemquanlyphongkham.net
DocumentRoot /home/phongkham/public_html
ErrorLog /var/log/virtualmin/phanmemquanlyphongkham.net_error_log
CustomLog /var/log/virtualmin/phanmemquanlyphongkham.net_access_log combined
DirectoryIndex index.php index.htm index.html
<Directory /home/phongkham/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch
Require all granted
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
AllowOverride None
</Directory>
<Directory /home/phongkham/cgi-bin>
Require all granted
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
</Directory>
ProxyPass /.well-known !
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.phanmemquanlyphongkham.net
RewriteRule ^(?!/.well-known)(.*) https://phanmemquanlyphongkham.net:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.phanmemquanlyphongkham.net
RewriteRule ^(?!/.well-known)(.*) https://phanmemquanlyphongkham.net:10000/ [R]
RemoveHandler .php
RemoveHandler .php7.4
RemoveHandler .php8.1
<FilesMatch \.php$>
SetHandler proxy:unix:/run/php/1712822917271695.sock|fcgi://127.0.0.1
</FilesMatch>
SSLEngine on
SSLCertificateFile /etc/ssl/virtualmin/1712822917271695/ssl.cert
SSLCertificateKeyFile /etc/ssl/virtualmin/1712822917271695/ssl.key
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
ScriptAlias /awstats /home/phongkham/cgi-bin/awstats.pl
RedirectMatch ^/awstats$ /awstats/
<Files awstats.pl>
AuthName "phanmemquanlyphongkham.net statistics"
AuthType Basic
AuthUserFile /home/phongkham/.awstats-htpasswd
require valid-user
</Files>
SSLCACertificateFile /etc/ssl/virtualmin/1712822917271695/ssl.ca
AliasMatch ^/.*$ /home/phongkham/public_html/disabled_by_virtualmin.html
</VirtualHost>