php_value post_max_size 16M
php_value upload_max_filesize 16M
php_admin_value safe_mode_include_dir "/var/www/vhosts/domain1.com/httpdocs"
php_admin_value open_basedir "/var/www/vhosts/domain2.com/httpdocs:/var/www/vhosts/domain1.com/httpdocs:/tmp"
<IfModule mod_ssl.c>Sample vhost.conf
<VirtualHost YOUR_IP:YOUR_PORT>
ServerName YOUR_DOMAIN:YOUR_PORT
ServerAlias www.YOUR_DOMAIN
UseCanonicalName Off
SuexecUserGroup YOUR_ADMIN psacln
ServerAdmin [email protected]
DocumentRoot /var/www/vhosts/YOUR_DOMAIN/httpdocs
CustomLog /var/www/vhosts/YOUR_DOMAIN/statistics/logs/access_ssl_log plesklog
ErrorLog /var/www/vhosts/YOUR_DOMAIN/statistics/logs/error_log
<IfModule mod_userdir.c>
UserDir /var/www/vhosts/YOUR_DOMAIN/web_users
</IfModule>
ScriptAlias /cgi-bin/ /var/www/vhosts/YOUR_DOMAIN/cgi-bin/
Alias /plesk-stat /var/www/vhosts/YOUR_DOMAIN/statistics/
<Location /plesk-stat/>
Options +Indexes
</Location>
<Location /plesk-stat/logs/>
Require valid-user
</Location>
Alias /webstat /var/www/vhosts/YOUR_DOMAIN/statistics/webstat
Alias /webstat-ssl /var/www/vhosts/YOUR_DOMAIN/statistics/webstat-ssl
Alias /ftpstat /var/www/vhosts/YOUR_DOMAIN/statistics/ftpstat
Alias /anon_ftpstat /var/www/vhosts/YOUR_DOMAIN/statistics/anon_ftpstat
Alias /awstats-icon /var/www/html/awstats/icon
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /usr/local/psa/var/certificates/cert-FrgoNn
<Directory /var/www/vhosts/YOUR_DOMAIN/httpdocs>
<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/YOUR_DOMAIN/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/YOUR_DOMAIN/httpdocs:/tmp"
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi)>
SetHandler fcgid-script
Options +FollowSymLinks +ExecCGI
</Files>
</IfModule>
SSLRequireSSL
Options -Includes +ExecCGI
</Directory>
<Directory /var/www/vhosts/YOUR_DOMAIN/web_users>
<IfModule sapi_apache2.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
</Directory>
Include /var/www/vhosts/YOUR_DOMAIN/conf/vhost_ssl.conf
</VirtualHost>
</IfModule>
<VirtualHost YOUR_IP:80>
ServerName YOUR_DOMAIN:80
ServerAlias www.YOUR_DOMAIN
UseCanonicalName Off
SuexecUserGroup YOUR_ADMIN psacln
ServerAdmin "[email protected]"
DocumentRoot /var/www/vhosts/YOUR_DOMAIN/httpdocs
CustomLog /var/www/vhosts/YOUR_DOMAIN/statistics/logs/access_log plesklog
ErrorLog /var/www/vhosts/YOUR_DOMAIN/statistics/logs/error_log
<IfModule mod_userdir.c>
UserDir /var/www/vhosts/YOUR_DOMAIN/web_users
</IfModule>
ScriptAlias /cgi-bin/ /var/www/vhosts/YOUR_DOMAIN/cgi-bin/
Redirect permanent /plesk-stat https://YOUR_DOMAIN/plesk-stat
Redirect permanent /webstat https://YOUR_DOMAIN/webstat
Redirect permanent /webstat-ssl https://YOUR_DOMAIN/webstat-ssl
Redirect permanent /ftpstat https://YOUR_DOMAIN/ftpstat
Redirect permanent /anon_ftpstat https://YOUR_DOMAIN/anon_ftpstat
Redirect permanent /awstats-icon https://YOUR_DOMAIN/awstats-icon
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory /var/www/vhosts/YOUR_DOMAIN/httpdocs>
<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/YOUR_DOMAIN/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/YOUR_DOMAIN/httpdocs:/tmp"
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi)>
SetHandler fcgid-script
Options +FollowSymLinks +ExecCGI
</Files>
</IfModule>
Options -Includes +ExecCGI
</Directory>
<Directory /var/www/vhosts/YOUR_DOMAIN/web_users>
<IfModule sapi_apache2.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
</Directory>
Include /var/www/vhosts/YOUR_DOMAIN/conf/vhost.conf
</VirtualHost>
<Directory /var/www/vhosts/YOUR_DOMAIN/httpdocs>Sample vhost_ssl.conf
php_value post_max_size 16M
php_value upload_max_filesize 16M
php_value allow_url_include off
php_admin_value open_basedir "/var/www/vhosts/YOUR_DOMAIN/httpdocs:/var/www/vhosts/YOUR_BASE_DOMAIN/httpdocs:/tmp"
</Directory>
<Directory /var/www/vhosts/YOUR_DOMAIN/httpdocs>
php_value post_max_size 16M
php_value upload_max_filesize 16M
php_value allow_url_include off
php_admin_value open_basedir "/var/www/vhosts/YOUR_DOMAIN/httpdocs:/var/www/vhosts/YOUR_BASE_DOMAIN/httpdocs:/tmp"
</Directory>