Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apt-get install certbot
- apt install apache2 mc sudo
- systemctl status apache2
- a2dissite 000-default
- mkdir -p /var/www/html/um.sytes.net/public
- chmod -R 755 /var/www/html/um.sytes.net
- chown -R www-data:www-data /var/www/html/um.sytes.net
- mcedit /etc/apache2/sites-available/um.sytes.net.conf
- <VirtualHost *:80>
- ServerAdmin [email protected]
- ServerName um.sytes.net
- ServerAlias www.um.sytes.net
- DocumentRoot /var/www/html/um.sytes.net/public
- <Directory /var/www/html/um.sytes.net/public>
- Options Indexes FollowSymLinks
- AllowOverride All
- Require all granted
- </Directory>
- ErrorLog ${APACHE_LOG_DIR}/error.log
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- </VirtualHost>
- a2ensite um.sytes.net.conf
- apt update
- apt install snapd -y
- snap install core
- snap refresh core
- snap install --classic certbot
- ln -s /snap/bin/certbot /usr/bin/certbot
- sudo certbot --apache --agree-tos --redirect -m [email protected] -d um.sytes.net -d www.um.sytes.net
- mcedit /var/www/html/um.sytes.net/public/index.html
- <!DOCTYPE html>
- <html lang="en">
- <head>
- tewrtfgdfgsdfgfghfghfghfghfgnvbnfgdfhjdfghfdghfghdfghgfhfghdfgh
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment