From 44313370b645c5409afe397ebd0497e922741e05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20J=C3=A4ckle?= Date: Mon, 19 Jul 2021 22:15:57 +0200 Subject: [PATCH] apache2 config --- apache2/detectportal.conf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 apache2/detectportal.conf diff --git a/apache2/detectportal.conf b/apache2/detectportal.conf new file mode 100644 index 0000000..8400ad4 --- /dev/null +++ b/apache2/detectportal.conf @@ -0,0 +1,20 @@ + + DocumentRoot /var/www/detectportal/public + ServerName detectportal.datamanager.ch + ServerAlias detectportal.jdmweb2.ch + ServerAlias detectportal.* + ErrorLog ${APACHE_LOG_DIR}/detectportal_error.log + CustomLog ${APACHE_LOG_DIR}/detectportal_access.log combined + + DirectoryIndex success.txt + AllowOverride All + Require all granted + + + RewriteEngine On + RewriteCond %{REQUEST_FILENAME} -s [OR] + RewriteCond %{REQUEST_FILENAME} -l + RewriteRule ^.*$ - [NC,L] + RewriteRule ^.*$ /index.php [NC,L] + +