• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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