• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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