• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

How do I change the default vhost directory?

B

bdensmore

Guest
We just got a dedicated server that has plesk installed. I set up a domain in the Plesk control panel which is located in:

/var/www/vhosts/mydomain/

If I upload a document to the httpdocs folder under the directory structure above I can never see that document.

I found that right now that any request made is actually going through /var/www/vhosts/default/htdocs

I can't seem to find how to make the requests go through the domain I set up.

I looked in the psa.conf file but the vhosts line just points to /var/www/vhosts

Any idea on where I can force everything to look in /var/www/vhosts/mydomain/httpdocs?

I thought by setting up the domain in Plesk that it would take care of it for me.

Thanks,
Ben
 
Values which you have required can be found in the following file:

/etc/httpd/conf.d/zz010_psa_httpd.conf

You can change the values at following variables: Here you can replace /default/htdocs with /mydomain/htdocs;


DocumentRoot /var/www/vhosts/default/htdocs


AND

<VirtualHost \
IP_1:80 \
IP_2:80 \
IP_3:80 \
IP_4:80 \
>
ServerName default
UseCanonicalName Off
DocumentRoot /var/www/vhosts/default/htdocs
ScriptAlias /cgi-bin/ "/var/www/vhosts/default/cgi-bin/"
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory "/var/www/vhosts/default/cgi-bin/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/vhosts/default/htdocs>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/var/www/vhosts/default/htdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/var/www/vhosts/default/htdocs:/tmp"
</IfModule>
</Directory>
</VirtualHost>
 
Back
Top