• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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