Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

default-vhost.j2 984B

7 lat temu
7 lat temu
7 lat temu
7 lat temu
7 lat temu
7 lat temu
7 lat temu
7 lat temu
7 lat temu
12345678910111213141516171819202122232425262728293031323334
  1. <VirtualHost _default_:443>
  2. ErrorLog ${APACHE_LOG_DIR}/error.log
  3. CustomLog ${APACHE_LOG_DIR}/access.log combined
  4. DocumentRoot /var/www/default/
  5. <Directory "/var/www/default/">
  6. Options -Indexes
  7. </Directory>
  8. SSLEngine on
  9. SSLCertificateFile "/etc/ssl/certs/ssl-cert-snakeoil.pem"
  10. SSLCertificateKeyFile "/etc/ssl/private/ssl-cert-snakeoil.key"
  11. </VirtualHost>
  12. <VirtualHost _default_:80>
  13. ErrorLog ${APACHE_LOG_DIR}/error.log
  14. CustomLog ${APACHE_LOG_DIR}/access.log combined
  15. DocumentRoot /var/www/default/
  16. <Directory "/var/www/default/">
  17. Options -Indexes
  18. </Directory>
  19. # redirect to https if file could not be found in /var/www/default/
  20. RewriteEngine On
  21. RewriteRule ^\/\.well-known\/acme-challenge\/ - [L]
  22. RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
  23. </VirtualHost>
  24. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet