what is the best way to configure 2 domains www.site.com and site.com http and https
it will be 1 wordpress behind.
do i need to install 2 domains or 1 ?
do i need to install 2 certificats or 1 ?
do i need to manually edit nginx conf file to do 301 redirect from “site” to www.site
About certificates : yes, you will need a certificate for both domains. But that shouldn’t be an issue : just go (for each domain) to Domain > your.domain.tld > Certificate in the webadmin, and add the certificate. (You can also do this from the command line)
If you are comfortable with editing conf manually (not everyone is), then maybe yes. But you might run into other issues, e.g. the SSO not allowing you to access www.domain.tld (before reaching the redirection). Then you’ll need to edit some stuff in /etc/ssowat, which is what the redirect app does for you.
thanks for comment Alex,
so event if i use redirect app i still need to create two domains and add 2 certificats via admin pannel
and then only use redirect app ?
Yes, because if you want your redirection to really work in all cases, you need to manage the case where your user attempts to access https://www.yourdomain.tld, in which case you do need a certificate for the redirection to work.
Hence, you need a ‘full web domain configuration’ with a valid certificate and so on