Advertisement
Guest User

Diepti https tailscale

a guest
May 11th, 2025
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | Cybersecurity | 0 0
  1. # /etc/apache2/sites-available/000-default.conf
  2. <VirtualHost *:80>
  3. ServerName dietpidevice.name-name.ts.net
  4. Redirect permanent / https://dietpidevice.name-name.ts.net/
  5. </VirtualHost>
  6.  
  7. _________________________________________________________________________________________
  8.  
  9. # /etc/apache2/sites-available/nextcloud-ssl.conf
  10.  
  11. <VirtualHost *:443>
  12. ServerName dietpidevice.name-name.ts.net
  13. ServerAlias (Zerotier as a bonus)100.100.999.66
  14.  
  15. DocumentRoot /var/www
  16. SSLEngine on
  17.  
  18. SSLCertificateFile /etc/apache2/tailscale-certs/dietpiserver.crt
  19. SSLCertificateKeyFile /etc/apache2/tailscale-certs/dietpiserver.key
  20.  
  21. <Directory /var/www/nextcloud>
  22. Require all granted
  23. AllowOverride All
  24. DirectoryIndex index.php index.html
  25. Options FollowSymLinks
  26.  
  27. <IfModule mod_dav.c>
  28. Dav off
  29. </IfModule>
  30.  
  31. <IfModule mod_headers.c>
  32. Header always set X-XSS-Protection "1; mode=block"
  33. </IfModule>
  34. </Directory>
  35.  
  36. <FilesMatch \.php$>
  37. SetHandler "proxy:unix:/run/php/php8.2-fpm.sock|fcgi://localhost/"
  38. </FilesMatch>
  39.  
  40. Redirect 301 /.well-known/webfinger /nextcloud/index.php/.well-known/webfinger
  41. Redirect 301 /.well-known/nodeinfo /nextcloud/index.php/.well-known/nodeinfo
  42.  
  43. ErrorLog ${APACHE_LOG_DIR}/nextcloud_ssl_error.log
  44. CustomLog ${APACHE_LOG_DIR}/nextcloud_ssl_access.log combined
  45. </VirtualHost>
  46.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement