This commit is contained in:
2022-11-14 13:52:44 +01:00
parent d8f1b79189
commit 07eb50aeea
2 changed files with 8 additions and 8 deletions

View File

@@ -38,11 +38,11 @@
- name: create documentroot
file:
name: /var/www/html/orsys.fr
name: /var/www/html/example.org
state: directory
- name: create index file
copy:
src: index.txt
dest: /var/www/html/orsys.fr/index.html
dest: /var/www/html/example.org/index.html
mode: 0644

View File

@@ -1,16 +1,16 @@
<VirtualHost *:80>
ServerName orsys.fr
ServerAlias www.orsys.fr
DocumentRoot /var/www/html/orsys.fr/
CustomLog /var/log/httpd/orsys.fr_access.log combined
ErrorLog /var/log/httpd/orsys.fr_error.log
ServerName example.org
ServerAlias www.example.org
DocumentRoot /var/www/html/example.org/
CustomLog /var/log/httpd/example.org_access.log combined
ErrorLog /var/log/httpd/example.org_error.log
<Directory />
Options none
Allowoverride none
Require all denied
</Directory>
<Directory /var/www/html/orsys.fr>
<Directory /var/www/html/example.org>
Require all granted
</Directory>
</VirtualHost>