collection of ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 lines
686 B

server "{{ icingaweb2_vhost }}" {
listen on * port 80
alias "localhost"
alias "127.0.0.1"
root "/icinga-web2/public"
block return 301 "https://$SERVER_NAME$DOCUMENT_URI"
}
server "{{ icingaweb2_vhost }}" {
listen on 127.0.0.1 port 8080
alias "localhost"
alias "127.0.0.1"
root "/icinga-web2/public"
directory index "index.php"
location "*.php*" {
fastcgi socket "/run/php-fpm-icingaweb2.sock"
fastcgi param ICINGAWEB_CONFIGDIR "/etc/icingaweb2"
}
location not found "*" {
request rewrite "/index.php?$QUERY_STRING"
}
}