• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

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