Page MenuHomePhabricator

Setup "sondaggi.wikimedia.it" as an useful redirect for the "survey.wikimedia.it" LimeSurvey main entry point
Closed, ResolvedPublic

Description

As already said it would be useful to setup this redirect:

To be used as useful/mnemonic/localizxed redirect to this page:

That is the main LimeSurvey entry point.

Intervention

$ ssh boz@fabula.wikimedia.it
$ sudo -i

# enable plaintext domain
$ cd /etc/httpd/sites-enabled
$ ln -s ../sites-available/it-wikimedia-sondaggi-txt.conf
$ apachectl configtest
Syntax OK
$ apachectl graceful

# deploy Let's Encrypt certificate
$ certbot certonly --webroot --webroot-path=/var/www/limesurvey/production -d sondaggi.wikimedia.it
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for sondaggi.wikimedia.it
Using the webroot path /var/www/limesurvey/production for all unmatched domains.
Waiting for verification...
Cleaning up challenges

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/sondaggi.wikimedia.it/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/sondaggi.wikimedia.it/privkey.pem
   Your cert will expire on 2021-05-25. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot
   again. To non-interactively renew *all* of your certificates, run
   "certbot renew"
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

# enable https:// virtualhost
$ ln -s ../sites-available/it-wikimedia-sondaggi-ssl.conf
$ apachectl configtest
$ apachectl graceful