Enable https ubuntu Apache2. http://localhost to https://localhost

Опубликовано: 16 Февраль 2023
на канале: Coders Gateway - Web Tech solutions
823
2

localhost with https ubuntu apache 2

Reference i got it from below url

https://www.digitalocean.com/communit...

Commands used
---------------------------------
1 sudo apt update
2 sudo ufw allow "Apache Full"
3 sudo a2enmod ssl
4 sudo systemctl restart apache2
5 sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt
6 sudo gedit /etc/apache2/sites-available/000-default.conf
7 sudo apache2ctl configtest
8 sudo systemctl reload apache2


/etc/apache2/sites-available/000-default.conf


Note: in below code CHANGE/REPLACE " [ " to LESS THAN Character And " ] " TO "GREATER THAN" Character
add this below your existing VirtualHost *:80 (Similar to that)


[VirtualHost *:443]

ServerName localhost
DocumentRoot /var/www/html

SSLEngine on
SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt
SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key

[/VirtualHost]


На этой странице сайта вы можете посмотреть видео онлайн Enable https ubuntu Apache2. http://localhost to https://localhost длительностью online в хорошем качестве, которое загрузил пользователь Coders Gateway - Web Tech solutions 16 Февраль 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 823 раз и оно понравилось 2 зрителям. Приятного просмотра!