Advertisement
Guest User

Untitled

a guest
Aug 12th, 2016
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. LoadModule ssl_module modules/mod_ssl.so
  2.  
  3. Listen 443
  4.  
  5. <VirtualHost *:80>
  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 icecraftmc.minecraft.is
  14.  
  15. ServerAdmin webmaster@localhost
  16. DocumentRoot /var/www/html/ekkert
  17.  
  18. # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  19. # error, crit, alert, emerg.
  20. # It is also possible to configure the loglevel for particular
  21. # modules, e.g.
  22. #LogLevel info ssl:warn
  23.  
  24. ErrorLog ${APACHE_LOG_DIR}/error.log
  25. CustomLog ${APACHE_LOG_DIR}/access.log combined
  26.  
  27. ErrorDocument 404 /404.php
  28.  
  29. # For most configuration files from conf-available/, which are
  30. # enabled or disabled at a global level, it is possible to
  31. # include a line for only one particular virtual host. For example the
  32. # following line enables the CGI configuration for this host only
  33. # after it has been globally disabled with "a2disconf".
  34. #Include conf-available/serve-cgi-bin.conf
  35.  
  36. Redirect permanent / https://icecraftmc.minecraft.is/
  37. </VirtualHost>
  38.  
  39. <VirtualHost _default_:443>
  40. <Directory />
  41. AllowOverride All
  42. </Directory>
  43.  
  44.  
  45. ServerName icecraftmc.minecraft.is
  46. DocumentRoot /var/www/html
  47.  
  48. SSLEngine on
  49. SSLCertificateFile /etc/letsencrypt/live/icecraftmc.minecraft.is/fullchain.pem
  50. SSLCertificateKeyFile /etc/letsencrypt/live/icecraftmc.minecraft.is/privkey.pem
  51.  
  52. </VirtualHost>
  53.  
  54. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement