環境
centOS6.7
apache
ansible-role-apache
こちらのroleでアパッチを管理しているので出来ればansibleで追加したいです。
site:yml
roles: - name: geerlingguy.mysql - name: geerlingguy.apache vars: apache_vhosts: - servername: "local.dev" documentroot: "/var/www/takeo_ec/home" apache_vhosts_ssl: - servername: "local.dev" documentroot: "/var/www/takeo_ec/ssl/home" certificate_file: "/etc/pki/tls/certs/localhost.crt" certificate_key_file: "/etc/pki/tls/private/localhost.key" certificate_chain_file: "/etc/pki/tls/certs/ca-bundle.crt" tags: - apache - name: geerlingguy.php
設定ごvhosts.confを見ると以下のようになっています。
<VirtualHost *:80> ServerName local.dev DocumentRoot /var/www/example/home <Directory "/var/www/example/home"> AllowOverride All Options -Indexes +FollowSymLinks Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost *:443> ServerName local.dev DocumentRoot /var/www/example/ssl/home SSLEngine on SSLCipherSuite AES256+EECDH:AES256+EDH SSLProtocol All -SSLv2 -SSLv3 SSLHonorCipherOrder On SSLCertificateFile /etc/pki/tls/certs/localhost.crt SSLCertificateKeyFile /etc/pki/tls/private/localhost.key SSLCertificateChainFile /etc/pki/tls/certs/ca-bundle.crt <Directory "/var/www/example/ssl/home"> AllowOverride All Options -Indexes +FollowSymLinks Order allow,deny Allow from all </Directory> </VirtualHost>
その他確認した方が良い箇所などあれば教えてください。
http://example.dev
/var/www/example/home
https://example.dev
/var/www/example/ssl/home
このようにしたいです。
何卒よろしくお願いいたします。
あなたの回答
tips
プレビュー