1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Change vhost path

Discussion in 'Plesk for Windows - 8.x and Older' started by Gavin Sandie, Sep 25, 2008.

  1. Gavin Sandie

    Gavin Sandie Guest

    0
     
    Hello,

    Currently on one of our windows plesk installs we have vhosts setup at C:\Inetpub\vhosts. I want to change this location, I also want to change the path that each domain is using:

    e.g. C:\Inetpub\vhosts\website1.com -> C:\Inetpub\vhosts\website1\

    Digging about I've found the websrvmng.exe tool, however I cannot find any documentation on how this tool should be used. "websrvmng.exe --help" gives a plethora of options but nothing that really describes what they do.

    I've tried to use the following:

    websrvmng.exe --get-vdir --vhost-name=website1.com

    This seems to give me an XML blob for the domain, I can save this blob to a file and then try to update the vhost with:

    websrvmng.exe --update-vdir --vhost-name=website1.com --vdir-config --via-file=D:\test.xml

    However I get an error:

    "The parameter is incorrect.
    at load"


    Is there any documentation for websrvmng.exe? Are there any instructions for changing the directory that a domains hosting is using? So far searching the forums, google and the knowledge base is not giving me any results.

    Thanks, Gavin
     
  2. prince

    prince Regular Pleskian

    24
    53%
    Joined:
    Aug 16, 2006
    Messages:
    166
    Likes Received:
    0
    plesk reconfigurator

    Hi,

    u can change the vhosts location using plesk reconfigurator.

    Access reconfigurator from start menu and you will get the option to change the vhost location.
     
  3. Gavin Sandie

    Gavin Sandie Guest

    0
     
    Hi,

    Thanks for your reply. I looked at the vhost reconfigurator but it would appear that it would move the location of the vhosts to a new location.

    E.g. if vhosts are in C:\inetput\vhosts you could move them all to D:\data\vhosts

    What I was looking to to do was just change the path used for an actual site:

    e.g. C:\inetpub\vhosts\www.website.com\ to be C:\inetpub\vhosts\website\

    Normally this would be quite straight forward from within IIS.

    I'm in the process of creating a test enviroment to play with the vhost reconfigurator and the websrvmng.exe tools to see if it is possible to get them to do what I need.

    Regards, Gavin
     
  4. prince

    prince Regular Pleskian

    24
    53%
    Joined:
    Aug 16, 2006
    Messages:
    166
    Likes Received:
    0
    as far as I know it's not possible with reconfigurator or websrvmng

    Good luck Gavin
     
Loading...