File: //etc/apache2/sites-enabled/gns3.dinartechshare-e.com.conf
<VirtualHost 192.168.1.2:80>
SuexecUserGroup "#1013" "#1012"
ServerName gns3.dinartechshare-e.com
ServerAlias www.gns3.dinartechshare-e.com
ServerAlias mail.gns3.dinartechshare-e.com
ServerAlias webmail.gns3.dinartechshare-e.com
ServerAlias admin.gns3.dinartechshare-e.com
ServerAlias autoconfig.gns3.dinartechshare-e.com
ServerAlias autodiscover.gns3.dinartechshare-e.com
DocumentRoot /home/dinartechshare-e/domains/gns3.dinartechshare-e.com/public_html
ErrorLog /var/log/virtualmin/gns3.dinartechshare-e.com_error_log
CustomLog /var/log/virtualmin/gns3.dinartechshare-e.com_access_log combined
ScriptAlias /cgi-bin/ /home/dinartechshare-e/domains/gns3.dinartechshare-e.com/cgi-bin/
ScriptAlias /awstats/ /home/dinartechshare-e/domains/gns3.dinartechshare-e.com/cgi-bin/
ScriptAlias /AutoDiscover/AutoDiscover.xml /home/dinartechshare-e/domains/gns3.dinartechshare-e.com/cgi-bin/autoconfig.cgi
ScriptAlias /Autodiscover/Autodiscover.xml /home/dinartechshare-e/domains/gns3.dinartechshare-e.com/cgi-bin/autoconfig.cgi
ScriptAlias /autodiscover/autodiscover.xml /home/dinartechshare-e/domains/gns3.dinartechshare-e.com/cgi-bin/autoconfig.cgi
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/dinartechshare-e/domains/gns3.dinartechshare-e.com/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
</Directory>
<Directory /home/dinartechshare-e/domains/gns3.dinartechshare-e.com/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
</Directory>
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.gns3.dinartechshare-e.com
RewriteRule ^(?!/.well-known)(.*) https://gns3.dinartechshare-e.com:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.gns3.dinartechshare-e.com
RewriteRule ^(?!/.well-known)(.*) https://gns3.dinartechshare-e.com:10000/ [R]
RemoveHandler .php
RemoveHandler .php5.6
RemoveHandler .php7.0
RemoveHandler .php7.2
RemoveHandler .php7.4
RemoveHandler .php8.0
<FilesMatch \.php$>
SetHandler proxy:fcgi://localhost:8048
</FilesMatch>
<Files awstats.pl>
AuthName "gns3.dinartechshare-e.com statistics"
AuthType Basic
AuthUserFile /home/dinartechshare-e/domains/gns3.dinartechshare-e.com/.awstats-htpasswd
require valid-user
</Files>
Alias /dav /home/dinartechshare-e/domains/gns3.dinartechshare-e.com/public_html
<Location /dav>
DAV on
AuthType Basic
AuthName "gns3.dinartechshare-e.com"
AuthUserFile /home/dinartechshare-e/domains/gns3.dinartechshare-e.com/etc/dav.digest.passwd
Require valid-user
ForceType text/plain
Satisfy All
RemoveHandler .php
RemoveHandler .php5.6
RemoveHandler .php7.0
RemoveHandler .php7.2
RemoveHandler .php7.4
RemoveHandler .php8.0
RewriteEngine off
</Location>
<Location /git>
DAV on
AuthType Basic
AuthName gns3.dinartechshare-e.com
AuthUserFile /home/dinartechshare-e/domains/gns3.dinartechshare-e.com/etc/git.basic.passwd
Require valid-user
Satisfy All
RedirectMatch ^/git$ http://gns3.dinartechshare-e.com/git/gitweb.cgi
RedirectMatch ^/git/$ http://gns3.dinartechshare-e.com/git/gitweb.cgi
RewriteEngine off
AddHandler cgi-script .cgi
</Location>
Redirect /mail/config-v1.1.xml /cgi-bin/autoconfig.cgi
Redirect /.well-known/autoconfig/mail/config-v1.1.xml /cgi-bin/autoconfig.cgi
AliasMatch ^/.*$ /home/dinartechshare-e/domains/gns3.dinartechshare-e.com/public_html/disabled_by_virtualmin.html
</VirtualHost>