• 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.

Plesk 7.5, vhost.conf and changed docroots

S

Salgermissen

Guest
Hi folks,

i am having some trouble with configuring a domain to use a
different documentroot.

Since Plesk 7.5 doesn't offer this in the Menues, i tried to
manualy configure this. After some tryouts with the httpd.conf
of the domain, i figured that the vhost.conf is the correct file
to make changes to ...

But this vhost.conf file is giving me some headaches:

Problem 1:

I want to change the docrot of Domain B. I copy the contents of
httpd.conf into the vhost.conf and change the path's and the user
to those of Domain A(this works if done in httpd.conf).

But when trying to make plesk take over the changes with
/usr/local/psa/admin/bin/websrvmng -a -v
i get an error-message that the httpd-service fails to restart gracefully.
Obviously the vhost.conf doesn't except the same syntax as the httpd.conf.
What commands do i have to use inside the vhost.conf to make that
vhost point to another docroot, especialy with the correct user for
that changed path??

Problem 2:
I try to add a RedirectMatch to the vhost.conf:
RedirectMatch ^/resume(.*)$ http://www2.<domain>.com/resume$1
(fetches URLs with /resume and redirects them to www2.*)

Now i want Plesk to take over these Changes with
/usr/local/psa/admin/bin/websrvmng -a -v
and i restart the apache.

Unfortunatly, this doesn't do anything. It's like my redirect gets
totaly ignored. If i add this line to the httpd.conf, it works perfect. (Until Plesk changes the file ...)

Problem 3
Is there a way to make plesk only update the vhost.conf/httpd.conf
of one vhost? My command alsways resets all httpd.conf siles for
all vhosts ...

Thanks for any help
 
Back
Top