Apache: serving different robots.txt for SSL and non-SSL version of the website

Sometimes, you may want SSL (https://) version of your websites to have different robots.txt than the plain text version (http://).

Here is how to achieve it with Apache webserver:

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to Lxadm.com.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.