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 example.com --ssl=le --wildcard

# Enable SSL for an existing website
ee site update example.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 old-domain.com new-domain.com

# Delete the old site
ee site delete 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 example.com --add-alias-domains='a.com,*.a.com,b.com,c.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/sample.com/config/nginx/custom/user.conf

Restart Nginx after making changes:

ee site reload sample.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