Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. # LoadModule ssl_module modules/mod_ssl.so
  2.  
  3. ServerName MYDOMAIN
  4. Listen 443
  5. <VirtualHost *:443>
  6. # The ServerName directive sets the request scheme, hostname and port that
  7. # the server uses to identify itself. This is used when creating
  8. # redirection URLs. In the context of virtual hosts, the ServerName
  9. # specifies what hostname must appear in the request's Host: header to
  10. # match this virtual host. For the default virtual host (this file) this
  11. # value is not decisive as it is used as a last resort host regardless.
  12. # However, you must set it for any further virtual host explicitly.
  13. ServerName MYDOMAIN
  14. SSLEngine on
  15.  
  16. ServerAdmin webmaster@localhost
  17. DocumentRoot /var/www/html
  18.  
  19. SSLCertificateFile /etc/letsencrypt/live/MYDOMAIN/fullchain.pem
  20. SSLCertificateKeyFile /etc/letsencrypt/live/MYDOMAIN/privkey.pem
  21.  
  22. # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  23. # error, crit, alert, emerg.
  24. # It is also possible to configure the loglevel for particular
  25. # modules, e.g.
  26. #LogLevel info ssl:warn
  27.  
  28. ErrorLog ${APACHE_LOG_DIR}/error.log
  29. CustomLog ${APACHE_LOG_DIR}/access.log combined
  30.  
  31. # For most configuration files from conf-available/, which are
  32. # enabled or disabled at a global level, it is possible to
  33. # include a line for only one particular virtual host. For example the
  34. # following line enables the CGI configuration for this host only
  35. # after it has been globally disabled with "a2disconf".
  36. #Include conf-available/serve-cgi-bin.conf
  37. </VirtualHost>
  38.  
  39. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
  40. ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement