Von olaf, 1 Woche vorher, geschrieben in Plain Text.
Einbetten
  1. VirtualHost *:80>
  2.     ServerAdmin admin@eure-domain.de
  3.     ServerName bachgau.social
  4.     ServerAlias www.bachgau.social
  5.     DocumentRoot /home/mastodon/
  6.     ErrorLog ${APACHE_LOG_DIR}/error.log
  7.     CustomLog ${APACHE_LOG_DIR}/access.log combined
  8. Redirect permanent / https://bachgau.social
  9.  
  10. </VirtualHost>
  11.  
  12.  
  13. <IfModule mod_ssl.c>
  14. SSLStaplingCache shmcb:/tmp/stapling_cache(128000)
  15. <VirtualHost *:443>
  16.  
  17. ServerName bachgau.social
  18. #ServerAlias *.bachgau.social
  19. DocumentRoot /home/mastodon/
  20.  
  21. ErrorLog ${APACHE_LOG_DIR}/error.log
  22. CustomLog ${APACHE_LOG_DIR}/access.log combined
  23.  
  24. # SSL Konfiguration
  25. SSLEngine on
  26. SSLCertificateFile /etc/letsencrypt/live/bachgau.social/fullchain.pem
  27. SSLCertificateKeyFile /etc/letsencrypt/live/bachgau.social/privkey.pem
  28. SSLProtocol All -SSLv2 -SSLv3 -TLSv1.1
  29.  
  30. <FilesMatch "\.(cgi|shtml|phtml|php)$">
  31. SSLOptions +StdEnvVars
  32. </FilesMatch>
  33. <Directory /usr/lib/cgi-bin>
  34. SSLOptions +StdEnvVars
  35. </Directory>
  36.  
  37. #Mastodon Konfiguration
  38. <Directory /home/mastodon/public/>
  39. Options FollowSymLinks
  40. AllowOverride All
  41. Order deny,allow
  42. Allow from all
  43. </Directory>
  44.  
  45. #<IfModule mod_dav.c>
  46. #Dav off</IfModule>
  47.  
  48. #SetEnv HOME /var/www/bachgau.social
  49. #SetEnv HTTP_HOME /var/www//bachgau.social
  50.  
  51. </VirtualHost>
  52. </IfModule>
  53.  
captcha