{% if website_password is defined %} AuthType Basic AuthName "Restricted access, contact OSAS for password" AuthUserFile /etc/httpd/{{ website_url }}.htpasswd Require valid-user {% endif %} AllowOverride All ServerName {{ website_url }} DocumentRoot {{ document_root }} Include /etc/httpd/conf.d/{{ website_url}}.conf.d/*conf