SHARE
TWEET

Vhost nextcloud nc.voidnull.es

zatuz Jul 11th, 2018 (edited) 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ##archivo vhost /etc/apache2/sites-available/nextcloud.conf
  2. ##PD abajo esta el comando de cerbot
  3. <VirtualHost *:80>
  4.  
  5.  
  6. ServerName nc.voidnull.es
  7. ServerAdmin webmaster@localhost
  8. DocumentRoot /var/www/html/vhost/nc.voidnull.es/www
  9.  
  10. <Directory />
  11. Options FollowSymLinks
  12. AllowOverride All
  13. </Directory>
  14.  
  15. <Directory /var/www/html/vhost/nc.voidnull.es/www>
  16.  
  17. Options Indexes FollowSymLinks MultiViews
  18. AllowOverride FileInfo
  19. #AuthConfig
  20. Order allow,deny
  21. allow from all
  22. </Directory>
  23.  
  24. ErrorLog "/var/www/html/vhost/nc.voidnull.es/logs/error.log"
  25. LogLevel warn
  26. CustomLog "/var/www/html/vhost/nc.voidnull.es/logs/access.log" combined
  27.  
  28. <IfModule mod_headers.c>
  29. Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
  30. </IfModule>
  31.  
  32. </VirtualHost>
  33. ##Certbot
  34. certbot --authenticator standalone --installer apache -d nc.voidnull.es --pre-hook "apache2ctl stop" --post-hook "apache2ctl start"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top