Changing the webroot

Hi, i’m using capistrano to deploy on the server and i would like to change the webroot.

Folders example :

/current -> /var/www/my_app_name/releases/20150120114500/








How do we change the webroot so WP work perfectly?

Thank you


You can change the webroot by changing root directive in NGINX site config .

Use command :

  1. ee site edit
  2. change PATH in root directive

PLEASE NOTE : Changing webroot will break the functionality of EasyEngine for the specified site.

Hi Prabuddha, thank you for your kind reply.

Yes when i change the webroot the site was not working properly, they a way to fix it ?


Could you provide site-specific error.log for the site, after you change webroot?