Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName files.mydomain.pl
  3. ServerAlias www.files.mydomain.pl
  4.  
  5. Redirect / https://www.files.mydomain.pl/
  6.  
  7. ErrorLog ${APACHE_LOG_DIR}/error.log
  8. CustomLog ${APACHE_LOG_DIR}/access.log combined
  9.  
  10. </VirtualHost>
  11.  
  12. <VirtualHost *:443>
  13. ServerName files.mydomain.pl
  14. ServerAlias www.files.mydomain.pl
  15. DocumentRoot /var/www/filerun
  16.  
  17.  
  18. ErrorDocument 400 /ErrorPages/HTTP400.html
  19. ErrorDocument 401 /ErrorPages/HTTP401.html
  20. ErrorDocument 403 /ErrorPages/HTTP403.html
  21. ErrorDocument 404 /ErrorPages/HTTP404.html
  22. ErrorDocument 500 /ErrorPages/HTTP500.html
  23. ErrorDocument 501 /ErrorPages/HTTP501.html
  24. ErrorDocument 502 /ErrorPages/HTTP502.html
  25. ErrorDocument 503 /ErrorPages/HTTP503.html
  26.  
  27. XSendFile On
  28.  
  29. ErrorLog ${APACHE_LOG_DIR}/ssl_error.log
  30. CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined
  31.  
  32.  
  33. Include /etc/letsencrypt/options-ssl-apache.conf
  34. SSLCertificateFile /etc/letsencrypt/live/kiepownica.pl/fullchain.pem
  35. SSLCertificateKeyFile /etc/letsencrypt/live/kiepownica.pl/privkey.pem
  36. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement