<VirtualHost myIP:80>
ServerName "myDomain.com:80"
ServerAlias "www.myDomain.com"
UseCanonicalName Off
<IfModule mod_suexec.c>
SuexecUserGroup "me" "psacln"
</IfModule>
ServerAdmin "
[email protected]"
DocumentRoot "/var/www/vhosts/myDomain.com/httpdocs/typo3/projekt1"
CustomLog /var/www/vhosts/myDomain.com/statistics/logs/access_log plesklog
ErrorLog "/var/www/vhosts/myDomain.com/statistics/logs/error_log"
<IfModule mod_userdir.c>
UserDir "/var/www/vhosts/myDomain.com/web_users"
</IfModule>
ScriptAlias "/cgi-bin/" "/var/www/vhosts/myDomain.com/cgi-bin/"
Alias "/plesk-stat" "/var/www/vhosts/myDomain.com/statistics"
<Location /plesk-stat/>
Options +Indexes
</Location>
<Location /plesk-stat/logs/>
Require valid-user
</Location>
Alias /webstat /var/www/vhosts/myDomain.com/statistics/webstat
Alias /webstat-ssl /var/www/vhosts/myDomain.com/statistics/webstat-ssl
Alias /ftpstat /var/www/vhosts/myDomain.com/statistics/ftpstat
Alias /anon_ftpstat /var/www/vhosts/myDomain.com/statistics/anon_ftpstat
Alias /awstats-icon /usr/share/awstats/icon
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
SetEnv PP_CUSTOM_PHP_INI /var/www/vhosts/myDomain.com/etc/php.ini
<IfModule mod_fcgid.c>
FcgidInitialEnv PP_CUSTOM_PHP_INI /var/www/vhosts/myDomain.com/etc/php.ini
</IfModule>
<Directory /var/www/vhosts/myDomain.com/httpdocs/typo3/projekt1>
<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi)>
SetHandler fcgid-script
Options +FollowSymLinks +ExecCGI
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.php)>
SetHandler fcgid-script
FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .php
Options +ExecCGI
allow from all
</Files>
</IfModule>
Options -Includes +ExecCGI
</Directory>
Alias /error_docs /var/www/vhosts/myDomain.com/error_docs
ErrorDocument 400 /error_docs/bad_request.html
# all the other ErrorDocuments
Include "/var/www/vhosts/myDomain.com/conf/vhost.conf"
</VirtualHost>
<VirtualHost myIP:80>
ServerName "admin.myDomain.com:80"
UseCanonicalName Off
<IfModule mod_suexec.c>
SuexecUserGroup "me" "psacln"
</IfModule>
ServerAdmin "
[email protected]"
DocumentRoot "/var/www/vhosts/myDomain.com/httpdocs/typo3/projekt1"
CustomLog /var/www/vhosts/myDomain.com/statistics/logs/access_log plesklog
ErrorLog "/var/www/vhosts/myDomain.com/statistics/logs/error_log"
ScriptAlias /cgi-bin/ "/var/www/vhosts/myDomain.com/subdomains/admin/cgi-bin/"
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory /var/www/vhosts/myDomain.com/httpdocs/typo3/projekt1>
<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</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/myDomain.com/httpdocs/typo3/projekt1/:/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/myDomain.com/httpdocs/typo3/projekt1/:/tmp/
</IfModule>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi)>
SetHandler fcgid-script
Options +FollowSymLinks +ExecCGI
</Files>
</IfModule>
Options -Includes +ExecCGI
</Directory>
Alias /error_docs /var/www/vhosts/myDomain.com/error_docs
ErrorDocument 400 /error_docs/bad_request.html
# all the other ErrorDocuments
</VirtualHost>
<VirtualHost myIP:80>
ServerName "subdomain1.myDomain.com:80"
UseCanonicalName Off
<IfModule mod_suexec.c>
SuexecUserGroup "me" "psacln"
</IfModule>
ServerAdmin "
[email protected]"
DocumentRoot "/var/www/vhosts/myDomain.com/site2"
CustomLog /var/www/vhosts/myDomain.com/statistics/logs/access_log plesklog
ErrorLog "/var/www/vhosts/myDomain.com/statistics/logs/error_log"
ScriptAlias /cgi-bin/ "/var/www/vhosts/myDomain.com/subdomains/subdomain1/cgi-bin/"
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory /var/www/vhosts/myDomain.com/site2>
<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi)>
SetHandler fcgid-script
Options +FollowSymLinks +ExecCGI
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.php)>
SetHandler fcgid-script
FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .php
Options +ExecCGI
allow from all
</Files>
</IfModule>
Options -Includes +ExecCGI
</Directory>
Alias /error_docs /var/www/vhosts/myDomain.com/error_docs
ErrorDocument 400 /error_docs/bad_request.html
# all the other ErrorDocuments
</VirtualHost>
<VirtualHost myIP:80>
ServerName "subdomain2.myDomain.com:80"
UseCanonicalName Off
<IfModule mod_suexec.c>
SuexecUserGroup "me" "psacln"
</IfModule>
ServerAdmin "
[email protected]"
DocumentRoot "/var/www/vhosts/myDomain.com/httpdocs/typo3/subdomain2"
CustomLog /var/www/vhosts/myDomain.com/statistics/logs/access_log plesklog
ErrorLog "/var/www/vhosts/myDomain.com/statistics/logs/error_log"
ScriptAlias /cgi-bin/ "/var/www/vhosts/myDomain.com/subdomains/subdomain2/cgi-bin/"
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory /var/www/vhosts/myDomain.com/httpdocs/typo3/subdomain2>
<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</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/myDomain.com/httpdocs/typo3/subdomain2/:/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/myDomain.com/httpdocs/typo3/subdomain2/:/tmp/
</IfModule>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi)>
SetHandler fcgid-script
Options +FollowSymLinks +ExecCGI
</Files>
</IfModule>
Options -Includes +ExecCGI
</Directory>
Alias /error_docs /var/www/vhosts/myDomain.com/error_docs
ErrorDocument 400 /error_docs/bad_request.html
# all the other ErrorDocuments
</VirtualHost>