This repository has been archived by the owner on Apr 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
50 lines (40 loc) · 1.88 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# OntoWiki .htaccess file
# WARNING: If you do not use the htaccess at all or your htaccess is
# ignored, then your config.ini can be loaded over the web !!!
<Files "*.ini">
Deny from all
</Files>
# OntoWiki does not requires Apache's rewrite engine to work. However,
# if you would like to have nice (Linked Data) URIs you must enable URL
# rewriting by enabling mod_rewrite in your apache config.
<IfModule mod_rewrite.c>
RewriteEngine On
# This gives ontowiki an easy hint that rewrite is enabled
<IfModule mod_env.c>
SetEnv ONTOWIKI_APACHE_MOD_REWRITE_ENABLED 1
</IfModule>
RewriteRule ^favicon\.(.*)$ application/favicon.$1
RewriteRule !((extensions|libraries).*|\.(js|ico|gif|jpg|png|css|php|swf|json))$ index.php
# Set RewriteBase only if your OntoWiki folder is not located in your web server's root dir.
#RewriteBase /ontowiki
</IfModule>
# if you allow short open tags, xml templates will crash
# please refer https://github.com/AKSW/OntoWiki/wiki/php.ini-recommendations
# for recommended PHP settings
# maybe php_flag is not allowed in your environment,
# but if you allow short open tags, xml templates will crash
#php_flag short_open_tag 0
### Additional Auth with external OntoWiki auth-script
### (more infos at http://code.google.com/p/mod-auth-external/)
#AuthType Basic
#AuthName OntoWiki
#AuthBasicProvider external
#AuthExternal ontowiki
#Require valid-user
### NOTE: This is needed to be included in /etc/apache2/mods-enabled/authnz_external.load or .conf
#DefineExternalAuth ontowiki pipe /path/to/ontowiki/application/scripts/mod-auth-external/ontowiki.php
### Fast Cache Loader
# this files parses the config ini generates the cache id and directly
# looks for the object cache and outputs it
#php_value auto_prepend_file 'extensions/site/FastCacheLoad.php'
php_value auto_prepend_file '/var/www/geoknow.eu/extensions/site/FastCacheLoad.php'