Commit 47281170 authored by Okhin's avatar Okhin

Installation d'un vhost apache en ssl

parent 587ef535
Pipeline #2454 passed with stages
in 27 seconds
......@@ -46,6 +46,8 @@ wordpress_site:
- name: siteurl
value: test.grange.dev.lqdn.fr
wordpress_wildcard_certfile: /etc/letsencrypt/live/grange.dev.lqdn.fr/fullchain.pem
wordpress_wildcard_keyfile: /etc/letsencrypt/live/grange.dev.lqdn.fr/privkey.pem
#certbot_create_command: "{{ certbot_script }} certonly --webroot --webrootpath /var/www/letsencrypt/ --noninteractive --agree-tos --email {{ cert_item.email | default(certbot_admin_email) }} -d {{ cert_item.domains | join(,)"
#certbot_certs:
......@@ -53,23 +55,13 @@ wordpress_site:
# - "grange.dev.lqdn.fr"
# - "*.grange.dev.lqdn.fr"
#apache_vhosts_ssl:
# - servername: "grange.dev.lqdn.fr"
# serveralias: "*.grange.dev.lqdn.fr"
# documentroot: "{{ wordpress_path }}"
# allow_override: "All"
# certificate_file: /etc/letsencrypt/live/grange.dev.lqdn.fr/fullchain.pem
# certificate_key_file: /etc/letsencrypt/live/grange.dev.lqdn.fr/privkey.pem
# extraparameters: |
# RewriteRule ^/.* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
# Alias /.well-known/acme-challenge/ /var/www/letsencrypt/.well-known/acme-challenge/
apache_vhosts:
apache_vhosts_ssl:
- servername: "grange.dev.lqdn.fr"
serveralias: "*.grange.dev.lqdn.fr"
documentroot: "{{ wordpress_path }}"
allow_override: "All"
#certificate_file: /etc/letsencrypt/live/grange.dev.lqdn.fr/fullchain.pem
#certificate_key_file: /etc/letsencrypt/live/grange.dev.lqdn.fr/privkey.pem
certificate_file: "{{ wordpress_wildcard_certfile }}"
certificate_key_file: "{{ wordpress_wildcard_keyfile }}"
extraparameters: |
RewriteRule ^/.* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
Alias /.well-known/acme-challenge/ /var/www/letsencrypt/.well-known/acme-challenge/
......
Subproject commit 655e11f7e840f741c5e5590231828b0c6b6a2ab0
Subproject commit 196c6c773f848c6ea9dd06a63d9ad61b74ded498
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment