load-net

443-apache2

Feb 27th, 2023 (edited)
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. apt-get install certbot
  2.  
  3.  
  4. apt install apache2 mc sudo
  5.  
  6. systemctl status apache2
  7. a2dissite 000-default
  8. mkdir -p /var/www/html/um.sytes.net/public
  9.  
  10. chmod -R 755 /var/www/html/um.sytes.net
  11. chown -R www-data:www-data /var/www/html/um.sytes.net
  12.  
  13. mcedit /etc/apache2/sites-available/um.sytes.net.conf
  14.  
  15.  
  16. <VirtualHost *:80>
  17. ServerAdmin [email protected]
  18. ServerName um.sytes.net
  19. ServerAlias www.um.sytes.net
  20.  
  21. DocumentRoot /var/www/html/um.sytes.net/public
  22.  
  23. <Directory /var/www/html/um.sytes.net/public>
  24. Options Indexes FollowSymLinks
  25. AllowOverride All
  26. Require all granted
  27. </Directory>
  28.  
  29. ErrorLog ${APACHE_LOG_DIR}/error.log
  30. CustomLog ${APACHE_LOG_DIR}/access.log combined
  31. </VirtualHost>
  32.  
  33.  
  34.  
  35.  
  36.  
  37. a2ensite um.sytes.net.conf
  38.  
  39. apt update
  40. apt install snapd -y
  41. snap install core
  42. snap refresh core
  43. snap install --classic certbot
  44. ln -s /snap/bin/certbot /usr/bin/certbot
  45.  
  46. sudo certbot --apache --agree-tos --redirect -m [email protected] -d um.sytes.net -d www.um.sytes.net
  47.  
  48.  
  49.  
  50. mcedit /var/www/html/um.sytes.net/public/index.html
  51.  
  52.  
  53. <!DOCTYPE html>
  54. <html lang="en">
  55. <head>
  56. tewrtfgdfgsdfgfghfghfghfghfgnvbnfgdfhjdfghfdghfghdfghgfhfghdfgh
  57.  
  58. </body>
  59. </html>
  60.  
Advertisement
Add Comment
Please, Sign In to add comment