Change default website path

Hi, how i can change the default path of website server root?

If possible i whant change the root path from: “/home/mywebsite/public_html” to “/var/vhosts/mywebsite.com/httpdocs”

Is it possible?

Thanks.

It’s kind of tricky to change the DocumentRoot for your web sites. Suexec comes configured to use /home, so using something other than /home typically means either recompiling Apache, or disabling suexec support.

Second, is that to change the dir from public_html to httpdocs, you’d need to go into System Settings -> Server Templates -> Apache Website, and you’ll need to update the box labeled “Directives and settings for new websites”… anywhere it mentions “public_html”, change it to “httpdocs”.

You’d have to experiment from there and see if that works, it may require a little additional tweaking, but that should get you started.

-Eric