Changeset 63df04e1 in darkpeak-services


Ignore:
Timestamp:
Jul 14, 2018, 1:01:02 PM (2 years ago)
Author:
Mat Booth <mat.booth@…>
Branches:
ansible, keycloak, master, matrix, pleroma
Children:
30ef5ea3
Parents:
5c095336
git-author:
Mat Booth <mat.booth@…> (07/14/18 12:59:16)
git-committer:
Mat Booth <mat.booth@…> (07/14/18 13:01:02)
Message:

apache: Redirect the bare domain name to the wiki service

We will use the wiki as our default home page

Location:
roles/apache2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roles/apache2/defaults/main.yml

    r5c095336 r63df04e1  
    11service_name: default
    22web_root: "{{ default_web_root }}/{{ service_name }}"
     3
     4# The name of the service that is providing our home page,
     5# apache2 will redirect the default bare domain to this service
     6redirect_to_service: wiki
  • roles/apache2/templates/apache.vhost.conf.j2

    r5c095336 r63df04e1  
    1414                ServerAdmin webmaster@{{ domain_name }}
    1515{% if service_name == 'default' %}
     16                # Redirect the bare domain name to the service providing the home page
    1617                ServerName {{ domain_name }}
     18                Redirect / https://{{ redirect_to_service }}.{{ domain_name }}/
    1719{% else %}
    1820                ServerName {{ domain }}
Note: See TracChangeset for help on using the changeset viewer.