]> git.phdru.name Git - ansible.git/commitdiff
Fix(add-apache-vhost): Fix directories
authorOleg Broytman <phd@phdru.name>
Tue, 30 Jul 2019 16:13:37 +0000 (19:13 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 30 Jul 2019 16:13:37 +0000 (19:13 +0300)
playbooks/debian/roles/add-apache-vhost/templates/vhost.conf

index 3ca21deca5f58547cc4d07cb7a1d47aaecd2fe48..f0defef69e44a4895118666051ea9c8702956779 100644 (file)
@@ -15,16 +15,16 @@ CustomLog /var/log/apache2/{{ virtual_host }}/access_log common
 <VirtualHost 127.0.0.1:443 {{ ansible_facts.default_ipv4.address }}:443>
 ServerName {{ virtual_host }}
 
-DocumentRoot /home/phd/Internet/WWW/htdocs/{{ virtual_host }}
-ScriptAlias /cgi-bin /home/phd/Internet/WWW/cgi-bin/{{ virtual_host }}
+DocumentRoot /usr/local/apache2/htdocs/{{ virtual_host }}
+ScriptAlias /cgi-bin /usr/local/apache2/cgi-bin/{{ virtual_host }}
 ErrorLog /var/log/apache2/{{ virtual_host }}/error_log
 CustomLog /var/log/apache2/{{ virtual_host }}/access_log common
 
-<Directory /home/phd/Internet/WWW/htdocs/{{ virtual_host }}>
+<Directory /usr/local/apache2/htdocs/{{ virtual_host }}>
 Require all granted
 </Directory>
 
-<Directory /home/phd/Internet/WWW/cgi-bin/{{ virtual_host }}>
+<Directory /usr/local/apache2/cgi-bin/{{ virtual_host }}>
 Require all granted
 </Directory>
 
@@ -72,7 +72,7 @@ SSLCertificateKeyFile /etc/apache2/ssl/{{ virtual_host }}.key
    SSLRequireSSL
 </Directory>
 
-<Directory /home/phd/Internet/WWW/cgi-bin/{{ virtual_host }}>
+<Directory /usr/local/apache2/cgi-bin/{{ virtual_host }}>
    SSLOptions +StdEnvVars
 </Directory>