Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- SuexecUserGroup "#1002" "#1002"
- ServerName blog.com
- ServerAlias www.blog.com
- ServerAlias mail.blog.com
- ServerAlias webmail.blog.com
- ServerAlias admin.blog.com
- DocumentRoot /home/user/domains/blog.com/public_html
- ErrorLog /var/log/virtualmin/blog.com_error_log
- CustomLog /var/log/virtualmin/blog.com_access_log combined
- ScriptAlias /cgi-bin/ /home/user/domains/blog.com/cgi-bin/
- ScriptAlias /awstats/ /home/user/domains/blog.com/cgi-bin/
- DirectoryIndex index.php index.php4 index.php5 index.htm index.html
- <Directory /home/user/domains/blog.com/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/user/domains/blog.com/fcgi-bin/php7.4.fcgi .php
- FCGIWrapper /home/user/domains/blog.com/fcgi-bin/php7.4.fcgi .php7.4
- </Directory>
- <Directory /home/user/domains/blog.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.blog.com
- RewriteRule ^(?!/.well-known)(.*) https://blog.com:20000/ [R]
- RewriteCond %{HTTP_HOST} =admin.blog.com
- RewriteRule ^(?!/.well-known)(.*) https://blog.com:10000/ [R]
- RemoveHandler .php
- RemoveHandler .php7.4
- php_admin_value engine Off
- FcgidMaxRequestLen 1073741824
- <Files awstats.pl>
- AuthName "blog.com statistics"
- AuthType Basic
- AuthUserFile /home/user/domains/blog.com/.awstats-htpasswd
- require valid-user
- </Files>
- Alias /dav /home/user/domains/blog.com/public_html
- <Location /dav>
- DAV on
- AuthType Basic
- AuthName "blog.com"
- AuthUserFile /home/user/domains/blog.com/etc/dav.digest.passwd
- Require valid-user
- ForceType text/plain
- Satisfy All
- RemoveHandler .php
- RemoveHandler .php7.4
- RewriteEngine off
- </Location>
- </VirtualHost>
- <VirtualHost 161.97.143.106:443>
- SuexecUserGroup "#1002" "#1002"
- ServerName blog.com
- ServerAlias www.blog.com
- ServerAlias mail.blog.com
- ServerAlias webmail.blog.com
- ServerAlias admin.blog.com
- DocumentRoot /home/user/domains/blog.com/public_html
- ErrorLog /var/log/virtualmin/blog.com_error_log
- CustomLog /var/log/virtualmin/blog.com_access_log combined
- ScriptAlias /cgi-bin/ /home/user/domains/blog.com/cgi-bin/
- ScriptAlias /awstats/ /home/user/domains/blog.com/cgi-bin/
- DirectoryIndex index.php index.php4 index.php5 index.htm index.html
- <Directory /home/user/domains/blog.com/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/user/domains/blog.com/fcgi-bin/php7.4.fcgi .php
- FCGIWrapper /home/user/domains/blog.com/fcgi-bin/php7.4.fcgi .php7.4
- </Directory>
- <Directory /home/user/domains/blog.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.blog.com
- RewriteRule ^(?!/.well-known)(.*) https://blog.com:20000/ [R]
- RewriteCond %{HTTP_HOST} =admin.blog.com
- RewriteRule ^(?!/.well-known)(.*) https://blog.com:10000/ [R]
- RemoveHandler .php
- RemoveHandler .php7.4
- php_admin_value engine Off
- FcgidMaxRequestLen 1073741824
- SSLEngine on
- SSLCertificateFile /home/user/domains/blog.com/ssl.cert
- SSLCertificateKeyFile /home/user/domains/blog.com/ssl.key
- SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
- <Files awstats.pl>
- AuthName "blog.com statistics"
- AuthType Basic
- AuthUserFile /home/user/domains/blog.com/.awstats-htpasswd
- require valid-user
- </Files>
- Alias /dav /home/user/domains/blog.com/public_html
- <Location /dav>
- DAV on
- AuthType Basic
- AuthName "blog.com"
- AuthUserFile /home/user/domains/blog.com/etc/dav.digest.passwd
- Require valid-user
- ForceType text/plain
- Satisfy All
- RemoveHandler .php
- RemoveHandler .php7.4
- RewriteEngine off
- </Location>
- SSLCACertificateFile /home/user/domains/blog.com/ssl.ca
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement