summaryrefslogtreecommitdiff
path: root/doc/iRony.conf
blob: 1d7b02c2f1ea2f7f004ecfe1fb37e4e49dd76f6c (plain)
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
# A suggested default configuration file for iRony under httpd

Alias /iRony   /usr/share/iRony/public_html

<Directory "/usr/share/iRony/public_html/">
    AllowOverride All

    <IfModule mod_authz_core.c>
        # Apache 2.4
        Require all granted
    </IfModule>
    <IfModule !mod_authz_core.c>
        # Apache 2.2
        Order Allow,Deny
        Allow from All
    </IfModule>

    RewriteEngine On
    RewriteBase /iRony/
    RewriteRule ^\.well-known/caldav   / [R,L]
    RewriteRule ^\.well-known/carddav  / [R,L]

    RewriteCond  %{REQUEST_FILENAME}  !-f
    RewriteCond  %{REQUEST_FILENAME}  !-d
    RewriteRule  (.*)                 index.php  [qsappend,last]

</Directory>