Grant access to robots.txt

Apache doesn't like serving files it hasn't been allowed to.

Change-Id: I1113c44f9621229074804d60eba7549ae1236583
This commit is contained in:
Monty Taylor 2020-04-16 12:16:19 -05:00
parent 3469673a11
commit d231d6177e
2 changed files with 10 additions and 1 deletions

View File

@ -28,10 +28,15 @@
src: my.cnf
dest: /etc/etherpad/mysql/my.cnf
- name: Make directory for robots.txt
file:
path: /var/etherpad/www
state: directory
- name: Install robots.txt
copy:
src: robots.txt
dest: /var/etherpad/robots.txt
dest: /var/etherpad/www/robots.txt
- name: Install apache2
apt:

View File

@ -95,5 +95,9 @@
ProxyPassReverse / http://localhost:9001/
</IfModule>
<Directory /var/etherpad/www/>
Require all granted
</Directory>
</VirtualHost>
</IfModule>