# ATTENTION!
# DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK
# FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA. IF YOU REQUIRE CUSTOM
# MODIFICATIONS TO BE APPLIED TO THE CONFIGURATION, PLEASE, PERFORM THEM IN THE
# FOLLOWING FILE(S):
# /var/www/vhosts/domain.com/conf/vhost.conf
# /var/www/vhosts/domain.com/conf/vhost_ssl.conf
# /var/www/vhosts/domain.com/subdomains/<subdomain-name>/conf/vhost.conf
<IfModule mod_ssl.c>
<VirtualHost 217.20.*.*:443>
ServerName blog.domain.com:443
ServerAlias www.blog.domain.com
UseCanonicalName Off
SuexecUserGroup domain psacln
ServerAdmin irgendjemand.gmx.net
DocumentRoot /var/www/vhosts/domain.com/httpdocs/blog
CustomLog /var/www/vhosts/domain.com/statistics/logs/access_ssl_log plesklog
ErrorLog /var/www/vhosts/domain.com/statistics/logs/error_ssl_log
<IfModule mod_userdir.c>
UserDir /var/www/vhosts/domain.com/web_users
</IfModule>
ScriptAlias /cgi-bin/ /var/www/vhosts/domain.com/cgi-bin/
Alias /plesk-stat /var/www/vhosts/domain.com/statistics/
Alias /webstat /var/www/vhosts/domain.com/statistics/webstat
Alias /webstat-ssl /var/www/vhosts/domain.com/statistics/webstat-ssl
Alias /ftpstat /var/www/vhosts/domain.com/statistics/ftpstat
Alias /anon_ftpstat /var/www/vhosts/domain.com/statistics/anon_ftpstat
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /opt/psa/var/certificates/certXf97VIR
<Directory /var/www/vhosts/domain.com/httpdocs>
<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule mod_perl.c>
<Files ~ (\.asp$)>
SetHandler perl-script
PerlHandler Apache::ASP
PerlSetVar Global /tmp
</Files>
</IfModule>
<IfModule mod_php4.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/domain.com/httpdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/domain.com/httpdocs:/tmp"
</IfModule>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
SSLRequireSSL
Options +Includes +ExecCGI
</Directory>
<Directory /var/www/vhosts/domain.com/web_users>
<IfModule mod_php4.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
</Directory>
<Directory "/var/www/vhosts/domain.com/statistics">
AuthType Basic
AuthName "Domain statistics"
AuthUserFile /var/www/vhosts/domain.com/pd/d..httpdocs@plesk-stat
require valid-user
</Directory>
Alias "/error_docs" "/var/www/vhosts/domain.com/error_docs"
ErrorDocument 400 /error_docs/bad_request.html
ErrorDocument 401 /error_docs/unauthorized.html
ErrorDocument 403 /error_docs/forbidden.html
ErrorDocument 404 /error_docs/not_found.html
ErrorDocument 500 /error_docs/internal_server_error.html
Include /var/www/vhosts/domain.com/conf/vhost_ssl.conf
</VirtualHost>
</IfModule>
<VirtualHost 217.20.*.*:80>
ServerName blog.domain.com:80
ServerAlias www.blog.domain.com
UseCanonicalName Off
SuexecUserGroup domain psacln
ServerAdmin "irgendjemand.gmx.net"
DocumentRoot /var/www/vhosts/domain.com/httpdocs/blog
CustomLog /var/www/vhosts/domain.com/statistics/logs/access_log plesklog
ErrorLog /var/www/vhosts/domain.com/statistics/logs/error_log
<IfModule mod_userdir.c>
UserDir /var/www/vhosts/domain.com/web_users
</IfModule>
ScriptAlias /cgi-bin/ /var/www/vhosts/domain.com/cgi-bin/
Redirect permanent /plesk-stat https://domain.com/plesk-stat
Redirect permanent /webstat https://domain.com/webstat
Redirect permanent /webstat-ssl https://domain.com/webstat-ssl
Redirect permanent /ftpstat https://domain.com/ftpstat
Redirect permanent /anon_ftpstat https://domain.com/anon_ftpstat
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory /var/www/vhosts/domain.com/httpdocs>
<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule mod_perl.c>
<Files ~ (\.asp$)>
SetHandler perl-script
PerlHandler Apache::ASP
PerlSetVar Global /tmp
</Files>
</IfModule>
<IfModule mod_php4.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/domain.com/httpdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/domain.com/httpdocs:/tmp"
</IfModule>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
Options +Includes +ExecCGI
</Directory>
<Directory /var/www/vhosts/domain.com/web_users>
<IfModule mod_php4.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
</Directory>
Alias "/error_docs" "/var/www/vhosts/domain.com/error_docs"
ErrorDocument 400 /error_docs/bad_request.html
ErrorDocument 401 /error_docs/unauthorized.html
ErrorDocument 403 /error_docs/forbidden.html
ErrorDocument 404 /error_docs/not_found.html
ErrorDocument 500 /error_docs/internal_server_error.html
Include /var/www/vhosts/domain.com/conf/vhost.conf
</VirtualHost>