Advertisement
TrapDrap

raiko.dev.conf (sites-available)

Nov 28th, 2023
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerAdmin webmaster@localhost
  3. ServerName raiko.dev
  4. ServerAlias www.raiko.dev
  5. DocumentRoot /var/www/rickroll
  6. ErrorLog ${APACHE_LOG_DIR}/error.log
  7. CustomLog ${APACHE_LOG_DIR}/access.log combined
  8. </VirtualHost>
  9.  
  10. <VirtualHost *:80>
  11. ServerName cloud.raiko.dev
  12. Redirect permanent http://cloud.raiko.dev/ https://cloud.raiko.dev/
  13. DocumentRoot /var/www/nextcloud
  14. <Directory /var/www/nextcloud/>
  15. Require all granted
  16. Options FollowSymlinks MultiViews
  17. AllowOverride All
  18. </Directory>
  19. <IfModule mod_dav.c>
  20. Dav off
  21. </IfModule>
  22. <IfModule mod_headers.c>
  23. Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
  24. </IfModule>
  25. ErrorLog /var/log/apache2/cloud.raiko.dev.error_log
  26. CustomLog /var/log/apache2/cloud.raiko.dev.access_log common
  27. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement