Install Apache Web Server. Gonfigure Virtual Host. Get SSL/TLS Certificate.
HTML-код
- Опубликовано: 11 окт 2024
- Install apache web server, and configure virtual host to serve multiple websites on the same server. Get FREE ssl /tls certificates for each website using python3-certbot-apache plugin.
🔔 SUBSCRIBE: If you find my videos helpful, you can support me by subscribing and leaving a comment. / @techtute
Timeline
00:45 Install Apache Web Server
01:20 Open Port 80 443 in iptables
02:20 Make webroot and index.html for your web site
02:50 Create virtual host to listen port 80
03:40 Create DNS record in Namecheap
04:54 Install and run python3-certbot-apache plugin (Will setup ssl and ssl redirect)
06:25 Set up second website on apache
08:50 Get SSL certificate for the second website
09:30 SSL certs auto renewal - Наука
Thank you, Angel! Your lessons are amazing!
You're so welcome!
WOWWWWWW fucking amazing bro!! very useful
I am glad you found it useful!
In the beginning 443 was added for https traffic but after obtaining letsencrypt certificate, 443 was not included in virtual host configuration file. How does this work? Why we continue to use 80 eventhough using ssl cert
certbot apache plug-in automatically creates a second vhost that listens on 443 based on the original vhost that listens on port 80.
@TechTute interesting; is that in the same directory sites-available ? Thank you for thr response
Yes the vhost for 443 will be placed in /etc/apache2/sites-available and a symlink to it should be in /etc/apache2/sites-enabled