Advertisement
Guest User

Untitled

a guest
Dec 27th, 2020
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <IfModule mod_ssl.c>
  2. <VirtualHost *:443>
  3.  
  4. ServerAdmin webmaster@localhost
  5. DocumentRoot /var/www/html
  6. ErrorLog ${APACHE_LOG_DIR}/error.log
  7. CustomLog ${APACHE_LOG_DIR}/access.log combined
  8.  
  9. <Location /custom404.html>
  10. RewriteEngine On
  11. RewriteCond %{ENV:REDIRECT_STATUS} =""
  12. RewriteRule .* - [R=404]
  13. </Location>
  14.  
  15. <Directory /var/www/html>
  16. #Options Indexes FollowSymLinks Includes
  17. AllowOverride All
  18. </Directory>
  19.  
  20. ServerName domain.com
  21. Include /etc/letsencrypt/options-ssl-apache.conf
  22. ServerAlias www.domain.com
  23. SSLCertificateFile ---
  24. SSLCertificateKeyFile ---
  25.  
  26. </VirtualHost>
  27.  
  28. <VirtualHost *:80>
  29. ........
  30.  
  31. </VirtualHost>
  32.  
  33.  
  34. </IfModule>
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement