aboutsummaryrefslogblamecommitdiffstats
path: root/roles/httpd/templates/httpd.conf.j2
blob: 8a772e9c0fc360509e73afeb33b9af48ce45e39f (plain) (tree)
1
2
3
4
5
6
7
8
9




                               
                           

                                   
                           
                                
                           

                               

 

                                           
                                     

                                                  


                               
 
                    
                                                                 
         


           


                                      

# httpd.conf ~~ /etc/httpd.conf
# managed by Ansible

types {
	text/css        css
	text/html       html htm
	text/plain      txt pgp pub
	image/gif       gif
	image/jpeg      jpeg jpg
	image/png       png
	image/svg+xml   svg
	application/xml xml rss
}

{% if ansible_host == global.dcontroller %}
server "default" {
	listen on localhost port 8888

	location "/.well-known/acme-challenge/*" {
		root "/acme"
		request strip 2
	}

	location * {
		block return 302 "https://$HTTP_HOST$REQUEST_URI"
	}
}
{% endif %}

{% for file in configurations.files %}
include "{{ file.path }}"
{% endfor %}
remember that computers suck.