GoAdmio Command Line: https with /go/https

/go/https turns the HTTP to HTTPS redirect on or off. It: Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

# Force HTTPS for one domain
/go/https example.com Enable

Arguments

Position Argument Required Values Notes
1 domain Yes A domain, all, or live Pass the full domain, for example example.com.
2 action Yes 1 or Enable to enable Anything else disables. See Action matching.

Action matching

Only two values enable the redirect, and they are case-sensitive.

You pass Result
1 Enabled
Enable Enabled
0, Disable, disable Disabled
enable (lowercase) Disabled
Nothing Disabled
Any other text Disabled

Always use 1/Enable to enable and 0/Disable to disable.

Examples

# Enable the redirect for one domain
/go/https example.com Enable

# Disable the redirect for one domain
/go/https example.com 0

# Enable for every domain that has a Let's Encrypt certificate (safest bulk option)
/go/https live 1

# Enable for every hosted domain, with or without a certificate
/go/https all Enable

# Turn the redirect off everywhere, for example while fixing certificates
/go/https all 0

# Review recent runs
tail /var/log/go/https.log

Output

Target What you see
<domain> Redirecting HTTP to HTTPS Enabled for <domain>. or ... Disabled for <domain>.
live The same line for each matching domain.
all No message of its own. Only the output of conf appears.

The message is printed even if the domain doesn’t exist in the database. See Troubleshooting.

See the full reference at /go/https and the GoAdmio command index.

GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *