SSL, Redirects

Managing SSL, Domains, and Redirects with EasyEngine

All SSL, domain, and alias domain-related settings are pre-configured in EasyEngine, making management effortless with simple commands.

Setting Up SSL

SSL can be configured instantly using the --ssl=le flag, along with wildcard and self-signed options. Example:

# Set up Let's Encrypt SSL
ee site create YOUR-SITE.COM --ssl=le --wildcard

# Enable SSL for an existing website
ee site update YOUR-SITE.COM --ssl=le

Reference: EasyEngine Site Create Command

Domain Management

Adding a Domain

Domains are automatically set up when creating a new website.

Changing a Domain Name

EasyEngine doesn’t provide a direct command to rename a domain, but you can achieve this by cloning the site with a new name and deleting the old one:

# Clone the old site to a new domain
ee site clone YOUR-OLD-DOMAIN.COM YOUR-NEW-DOMAIN.COM

# Delete the old site
ee site delete YOUR-OLD-DOMAIN.COM

References:

WWW and Non-WWW

When you create a site with either www or non-www, EasyEngine automatically creates an alias for the other version. If you want to add additional aliases:

ee site update YOUR-SITE.COM --add-alias-domains='YOUR-ALIAS-DOMAIN.COM,*.YOUR-ALIAS-DOMAIN.COM,YOUR-ALIAS-DOMAIN-2.COM'

Redirect Configuration

If you need to set up redirects, add the rules to user.conf by creating a new .conf file inside the nginx/custom/ directory. These custom configurations will remain unchanged during EasyEngine updates.

nano /opt/easyengine/sites/YOUR-SITE.COM/config/nginx/custom/user.conf

Restart Nginx after making changes:

ee site reload YOUR-SITE.COM

Keep in mind that this configuration will be placed inside the Nginx server block and will only apply to the specific site.

Last updated on