Cli switch(es) for LE-auto - -apache


#1

Hi all,

I’m writing some scripts to issue & renew certs, & am using the below command

./letsencrypt-auto -d example.com -d www.example.com --server "$LE_server" --apache --agree-dev-preview --agree-tos --renew-by-default

The one thing I can’t seem to find a switch for is the “Easy/Secure” question when the client asks if you wish to enable redirects.

Does anyone know if this is available, or if there are plans to add this in?


#2

Hello @chris18890,

I don’t use apache plugin at all but I think that the options that you are looking for are:

  --redirect            Automatically redirect all HTTP traffic to HTTPS for
                        the newly authenticated vhost. (default: None)
  --no-redirect         Do not automatically redirect all HTTP traffic to
                        HTTPS for the newly authenticated vhost. (default:
                        None) 

Cheers,
sahsanu


#3

Hey @sasanu,

Unfortunately that didn’t work as it retuned a 502 error

An unexpected error occurred: ClientError: <Response [502]>

I’ll keep digging though & start looking at the logs thanks anyway! :slight_smile: