Webinoly is just the perfect tool for NGINX experts. Give it a try!
0 votes
by Talented
Hey Cristhian, when playing with subfolders I noticed two things:

How can I clone example.com to example.com/subfolder? The commands I tried did not work as expected.

When cloning example.com with a fresh -wp install on /subfolder the clone has also the conf with the subfolder things in there, but the subfolder does not get cloned with the root site leading to a failed nginx reload.

by Expert

Just for the record: I've successfully reproduced the nginx error you mentioned, it will be fixed in the next release (v1.13.0). Thanks a lot for reporting this issue!

1 Answer

+1 vote
by Expert
selected by
Best answer

That's not possible!

You can clone sites only using differents domains or subdomains.

sudo site example.com -clone-from=sub.example.com
sudo site example.com -clone-from=example.org

Subfolder option is suportted:

sudo site example.com -clone-from=sub.example.com -subfolder=/test

Clone sub.example.com/test to example.com/test

And thanks, I will check the Nginx error you mentioned, it shouldn't happen, Webinoly should be able to detect this case and give a proper error message.

by Talented
Would it be worth a feature request? The advantage would be that no new DNS settings would have to be set up and no new SSL certificate would need to be issued. For me the subfolder staging site is a classic. :)
by Expert

There are two options that were initially considered:

  • Clone from root / to subfolder and viceversa.
  • Clone from the same domain to a different subfolder (from /a to /b).
They both are still open, but not scheduled. Like "nice to have, but not a priority".
Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.