Compare commits

..

No commits in common. "9fbb2f7778449e08b9d100bdfbae28094fecb667" and "5fea8518ed53807f8f99bc3bc133cd2a8ec778ca" have entirely different histories.

3 changed files with 4 additions and 8 deletions

View File

@ -1,5 +1,7 @@
<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

View File

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

View File

@ -52,21 +52,16 @@
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"