apache2 config
This commit is contained in:
parent
51b19bc743
commit
44313370b6
1 changed files with 20 additions and 0 deletions
20
apache2/detectportal.conf
Normal file
20
apache2/detectportal.conf
Normal file
|
@ -0,0 +1,20 @@
|
|||
<VirtualHost 127.0.1.1:80>
|
||||
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
|
||||
<Directory /var/www/detectportal/public>
|
||||
DirectoryIndex success.txt
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
<Location />
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
||||
RewriteCond %{REQUEST_FILENAME} -l
|
||||
RewriteRule ^.*$ - [NC,L]
|
||||
RewriteRule ^.*$ /index.php [NC,L]
|
||||
</Location>
|
||||
</VirtualHost>
|
Loading…
Reference in a new issue