Ravi Sir's Cyber Security Cards › Revision Cards
Domain and HTTPS
Domain and HTTPS Giving the reels app its own name and HTTPS. Add an A record : Name reels → your Elastic IP. Check with dig . Run Certbot to get a certificate and redirect HTTP to HTTPS. Add HSTS in the HTTPS server block. After HTTPS, login seems broken: the page just reloads. Set 'cookie_secure'

Read card text
What this card says
What it is
Giving the reels app its own name and HTTPS.
Steps
Add an A record: Name reels → your Elastic IP. Check with dig.
Run Certbot to get a certificate and redirect HTTP to HTTPS.
Add HSTS in the HTTPS server block.
Common mistake
After HTTPS, login seems broken: the page just reloads.
Set 'cookie_secure' => true in config.php and restart php-fpm, then test again.
Learn more in the lesson: 16.11 Domain and HTTPS