Compare commits

..

2 Commits

Author SHA1 Message Date
9fbb2f7778 Feat: Add global index 2020-09-23 17:51:26 +02:00
28030c93bb Fix: remove servername reference 2020-09-23 17:51:13 +02:00
3 changed files with 8 additions and 4 deletions

View File

@ -1,7 +1,5 @@
<VirtualHost *:{{ http_port }}> <VirtualHost *:{{ http_port }}>
ServerAdmin webmaster@localhost ServerAdmin webmaster@localhost
ServerName {{ http_host }}
ServerAlias www.{{ http_host }}
DocumentRoot /var/www/{{ http_host }} DocumentRoot /var/www/{{ http_host }}
ErrorLog ${APACHE_LOG_DIR}/error.log ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined CustomLog ${APACHE_LOG_DIR}/access.log combined

1
files/index.html.j2 Normal file
View File

@ -0,0 +1 @@
<h1> Serveur pédagogique pour {{ item.name }} </h1>

View File

@ -52,16 +52,21 @@
login_user: root login_user: root
login_password: "{{ mysql_root_password }}" login_password: "{{ mysql_root_password }}"
# UFW Configuration
- name: "UFW - Allow HTTP on port {{ http_port }}" - name: "UFW - Allow HTTP on port {{ http_port }}"
ufw: ufw:
rule: allow rule: allow
port: "{{ http_port }}" port: "{{ http_port }}"
proto: tcp proto: tcp
# PHP Info Page
- name: Sets Up PHP Info Page - name: Sets Up PHP Info Page
template: template:
src: "files/info.php.j2" src: "files/info.php.j2"
dest: "/var/www/{{ http_host }}/info.php" dest: "/var/www/{{ http_host }}/info.php"
- name: Sets Up Index page
template:
src: "files/index.html.j2"
dest: "/var/www/{{ http_host }}/info.php"
vars:
item.name: "la SNT"