diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-09-10 08:57:06 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-09-10 08:57:06 +0200 |
commit | b296d7987e5558b11bdf16dced7b1f139bea0499 (patch) | |
tree | bbbab8ccdec3c7ca116850a2558f498fb8a9ae4d /ansible/plays/templates/mw/sites-enabled | |
parent | 46934bb125c6b3fc53b1669cb5131f9c2f06ac0e (diff) | |
download | infra-b296d7987e5558b11bdf16dced7b1f139bea0499.tar.gz infra-b296d7987e5558b11bdf16dced7b1f139bea0499.tar.bz2 infra-b296d7987e5558b11bdf16dced7b1f139bea0499.tar.xz infra-b296d7987e5558b11bdf16dced7b1f139bea0499.zip |
o Moving mw and malabaricus to plays/.
Diffstat (limited to 'ansible/plays/templates/mw/sites-enabled')
-rw-r--r-- | ansible/plays/templates/mw/sites-enabled/000-default.conf | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/ansible/plays/templates/mw/sites-enabled/000-default.conf b/ansible/plays/templates/mw/sites-enabled/000-default.conf new file mode 100644 index 0000000..ceed9b9 --- /dev/null +++ b/ansible/plays/templates/mw/sites-enabled/000-default.conf @@ -0,0 +1,60 @@ +# Based on /etc/apache2/conf-available/mediawiki.conf + +<VirtualHost *:80> + ServerName mw.trygvis.io + + ServerAdmin webmaster@trygvis.io + DocumentRoot /var/www/mw.trygvis.io + + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined + + Alias /w /opt/mediawiki/mediawiki + Alias /wiki /opt/mediawiki/mediawiki/index.php + RedirectMatch permanent ^/$ /wiki/Main_Page + +<Directory /opt/mediawiki/mediawiki/> + Options +FollowSymLinks + AllowOverride All + <IfVersion >= 2.3> + Require all granted + </IfVersion> + <IfVersion < 2.3> + order allow,deny + allow from all + </IfVersion> +</Directory> + +# some directories must be protected +<Directory /opt/mediawiki/mediawiki/config> + Options -FollowSymLinks + AllowOverride None + <IfModule mod_php7.c> + php_admin_flag engine off + </IfModule> + <IfModule mod_php5.c> + php_admin_flag engine off + </IfModule> +</Directory> +<Directory /opt/mediawiki/mediawiki/images> + Options -FollowSymLinks + AllowOverride None + <IfModule mod_php7.c> + php_admin_flag engine off + </IfModule> + <IfModule mod_php5.c> + php_admin_flag engine off + </IfModule> +</Directory> +<Directory /opt/mediawiki/mediawiki/upload> + Options -FollowSymLinks + AllowOverride None + <IfModule mod_php7.c> + php_admin_flag engine off + </IfModule> + <IfModule mod_php5.c> + php_admin_flag engine off + </IfModule> +</Directory> +</VirtualHost> +# vim: syntax=apache ts=4 sw=4 sts=4 sr noet |