• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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