• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

vhost.conf and document root -> httpdocs vs own document root

S

StefanieW

Guest
hello,

i need help for autmatically generated vhost.conf file.

I placed a vhost.conf file at /var/www/vhosts/.skel/0/conf with the content below.

For customers it's possible to define their own document root since plesk 10. Is there also a variable for the document root folder httpdocs, site1, site2 eg as for domain name -> @domain_name@ ?

Below works fine with plesk 9, since plesk 10 httpdocs can be a folder set through the costumer. so how to get the costumers defined webfolder for the skeleton vhost.conf file , domainname could get with @domain_name@, so how to get the document root folder -> @document_root@

<Directory /var/www/vhosts/@domain_name@/httpdocs> <---- how to get site1,site2

##htaccess ausschalten
AllowOverride None

<IfModule mod_php5.c>
php_admin_value memory_limit 8M
php_admin_value max_execution_time 20
php_admin_value max_input_time 20
php_admin_value post_max_size 2M
php_admin_value upload_max_filesize 1M
php_admin_value upload_tmp_dir "/var/www/vhosts/@domain_name@/conf/php-tmp"
php_admin_value session.save_path "/var/www/vhosts/@domain_name@/conf/php-session"
php_admin_value open_basedir "/var/www/vhosts/@domain_name@/httpdocs:/tmp:/var/www/vhosts/@domain_name@/conf/php-tmp:/var/www/vhosts/@domain_name@/conf/php-session"
php_admin_value mail.force_extra_parameters "-f www-data@@domain_name@"

</IfModule>

</Directory>
 
Back
Top