summaryrefslogtreecommitdiffstats
path: root/.htaccess
blob: 725efa0971a1ca0d8c6a2ced938e3fc88bc738b1 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<IfModule mod_headers.c>
  <IfModule mod_setenvif.c>
    <IfModule mod_fcgid.c>
       SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
       RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
    </IfModule>
    <IfModule mod_proxy_fcgi.c>
       SetEnvIfNoCase Authorization "(.+)" HTTP_AUTHORIZATION=$1
    </IfModule>
  </IfModule>

  <IfModule mod_env.c>
    # Add security and privacy related headers
    Header set X-Content-Type-Options "nosniff"
    Header set X-XSS-Protection "1; mode=block"
    Header set X-Robots-Tag "none"
    Header set X-Frame-Options "SAMEORIGIN"
    Header set X-Download-Options "noopen"
    Header set X-Permitted-Cross-Domain-Policies "none"
    SetEnv modHeadersAvailable true
  </IfModule>

  # Add cache control for CSS and JS files
  <FilesMatch "\.(css|js)$">
    Header set Cache-Control "max-age=7200, public"
  </FilesMatch>
</IfModule>
<IfModule mod_php5.c>
  php_value upload_max_filesize 513M
  php_value post_max_size 513M
  php_value memory_limit 512M
  php_value mbstring.func_overload 0
  php_value always_populate_raw_post_data -1
  php_value default_charset 'UTF-8'
  php_value output_buffering 0
  <IfModule mod_env.c>
    SetEnv htaccessWorking true
  </IfModule>
</IfModule>
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  RewriteRule ^\.well-known/host-meta /public.php?service=host-meta [QSA,L]
  RewriteRule ^\.well-known/host-meta\.json /public.php?service=host-meta-json [QSA,L]
  RewriteRule ^\.well-known/carddav /remote.php/dav/ [R=301,L]
  RewriteRule ^\.well-known/caldav /remote.php/dav/ [R=301,L]
  RewriteRule ^remote/(.*) remote.php [QSA,L]
  RewriteRule ^(build|tests|config|lib|3rdparty|templates)/.* - [R=404,L]
  RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/.*
  RewriteRule ^(\.|autotest|occ|issue|indie|db_|console).* - [R=404,L]

  # Rewrite rules for `front_controller_active`
  Options -MultiViews
  RewriteRule ^core/js/oc.js$ index.php/core/js/oc.js [PT,E=PATH_INFO:$1]
  RewriteRule ^core/preview.png$ index.php/core/preview.png [PT,E=PATH_INFO:$1]
  RewriteCond %{REQUEST_FILENAME} !\.(css|js|svg|gif|png|html|ttf|woff|ico)$
  RewriteCond %{REQUEST_FILENAME} !core/img/favicon.ico$
  RewriteCond %{REQUEST_FILENAME} !/remote.php
  RewriteCond %{REQUEST_FILENAME} !/public.php
  RewriteCond %{REQUEST_FILENAME} !/cron.php
  RewriteCond %{REQUEST_FILENAME} !/core/ajax/update.php
  RewriteCond %{REQUEST_FILENAME} !/status.php
  RewriteCond %{REQUEST_FILENAME} !/ocs/v1.php
  RewriteCond %{REQUEST_FILENAME} !/ocs/v2.php
  RewriteCond %{REQUEST_FILENAME} !/updater/
  RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/.*
  RewriteRule .* index.php [PT,E=PATH_INFO:$1]
</IfModule>
<IfModule mod_mime.c>
  AddType image/svg+xml svg svgz
  AddEncoding gzip svgz
</IfModule>
<IfModule mod_dir.c>
  DirectoryIndex index.php index.html
</IfModule>
AddDefaultCharset utf-8
Options -Indexes
<IfModule pagespeed_module>
  ModPagespeed Off
</IfModule>
e zip file." msgstr "Els fitxers seleccionats son massa grans per generar un fitxer zip." #: files.php:254 msgid "" "Download the files in smaller chunks, seperately or kindly ask your " "administrator." msgstr "Baixeu els fitxers en trossos petits, de forma separada, o pregunteu a l'administrador." #: helper.php:235 msgid "couldn't be determined" msgstr "no s'ha pogut determinar" #: json.php:28 msgid "Application is not enabled" msgstr "L'aplicació no està habilitada" #: json.php:39 json.php:62 json.php:73 msgid "Authentication error" msgstr "Error d'autenticació" #: json.php:51 msgid "Token expired. Please reload page." msgstr "El testimoni ha expirat. Torneu a carregar la pàgina." #: search/provider/file.php:17 search/provider/file.php:35 msgid "Files" msgstr "Fitxers" #: search/provider/file.php:26 search/provider/file.php:33 msgid "Text" msgstr "Text" #: search/provider/file.php:29 msgid "Images" msgstr "Imatges" #: setup/abstractdatabase.php:22 #, php-format msgid "%s enter the database username." msgstr "%s escriviu el nom d'usuari de la base de dades." #: setup/abstractdatabase.php:25 #, php-format msgid "%s enter the database name." msgstr "%s escriviu el nom de la base de dades." #: setup/abstractdatabase.php:28 #, php-format msgid "%s you may not use dots in the database name" msgstr "%s no podeu usar punts en el nom de la base de dades" #: setup/mssql.php:20 #, php-format msgid "MS SQL username and/or password not valid: %s" msgstr "Nom d'usuari i/o contrasenya MS SQL no vàlids: %s" #: setup/mssql.php:21 setup/mysql.php:13 setup/oci.php:114 #: setup/postgresql.php:24 setup/postgresql.php:70 msgid "You need to enter either an existing account or the administrator." msgstr "Heu d'escriure un compte existent o el d'administrador." #: setup/mysql.php:12 msgid "MySQL username and/or password not valid" msgstr "Nom d'usuari i/o contrasenya MySQL no vàlids" #: setup/mysql.php:67 setup/oci.php:54 setup/oci.php:121 setup/oci.php:147 #: setup/oci.php:154 setup/oci.php:165 setup/oci.php:172 setup/oci.php:181 #: setup/oci.php:189 setup/oci.php:198 setup/oci.php:204 #: setup/postgresql.php:89 setup/postgresql.php:98 setup/postgresql.php:115 #: setup/postgresql.php:125 setup/postgresql.php:134 #, php-format msgid "DB Error: \"%s\"" msgstr "Error DB: \"%s\"" #: setup/mysql.php:68 setup/oci.php:55 setup/oci.php:122 setup/oci.php:148 #: setup/oci.php:155 setup/oci.php:166 setup/oci.php:182 setup/oci.php:190 #: setup/oci.php:199 setup/postgresql.php:90 setup/postgresql.php:99 #: setup/postgresql.php:116 setup/postgresql.php:126 setup/postgresql.php:135 #, php-format msgid "Offending command was: \"%s\"" msgstr "L'ordre en conflicte és: \"%s\"" #: setup/mysql.php:85 #, php-format msgid "MySQL user '%s'@'localhost' exists already." msgstr "L'usuari MySQL '%s'@'localhost' ja existeix." #: setup/mysql.php:86 msgid "Drop this user from MySQL" msgstr "Elimina aquest usuari de MySQL" #: setup/mysql.php:91 #, php-format msgid "MySQL user '%s'@'%%' already exists" msgstr "L'usuari MySQL '%s'@'%%' ja existeix" #: setup/mysql.php:92 msgid "Drop this user from MySQL." msgstr "Elimina aquest usuari de MySQL." #: setup/oci.php:34 msgid "Oracle connection could not be established" msgstr "No s'ha pogut establir la connexió Oracle" #: setup/oci.php:41 setup/oci.php:113 msgid "Oracle username and/or password not valid" msgstr "Nom d'usuari i/o contrasenya Oracle no vàlids" #: setup/oci.php:173 setup/oci.php:205 #, php-format msgid "Offending command was: \"%s\", name: %s, password: %s" msgstr "L'ordre en conflicte és: \"%s\", nom: %s, contrasenya: %s" #: setup/postgresql.php:23 setup/postgresql.php:69 msgid "PostgreSQL username and/or password not valid" msgstr "Nom d'usuari i/o contrasenya PostgreSQL no vàlids" #: setup.php:28 msgid "Set an admin username." msgstr "Establiu un nom d'usuari per l'administrador." #: setup.php:31 msgid "Set an admin password." msgstr "Establiu una contrasenya per l'administrador." #: setup.php:184 msgid "" "Your web server is not yet properly setup to allow files synchronization " "because the WebDAV interface seems to be broken." msgstr "El servidor web no està configurat correctament per permetre la sincronització de fitxers perquè la interfície WebDAV sembla no funcionar correctament." #: setup.php:185 #, php-format msgid "Please double check the <a href='%s'>installation guides</a>." msgstr "Comproveu les <a href='%s'>guies d'instal·lació</a>." #: template/functions.php:80 msgid "seconds ago" msgstr "segons enrere" #: template/functions.php:81 msgid "1 minute ago" msgstr "fa 1 minut" #: template/functions.php:82 #, php-format msgid "%d minutes ago" msgstr "fa %d minuts" #: template/functions.php:83 msgid "1 hour ago" msgstr "fa 1 hora" #: template/functions.php:84 #, php-format msgid "%d hours ago" msgstr "fa %d hores" #: template/functions.php:85 msgid "today" msgstr "avui" #: template/functions.php:86 msgid "yesterday" msgstr "ahir" #: template/functions.php:87 #, php-format msgid "%d days ago" msgstr "fa %d dies" #: template/functions.php:88 msgid "last month" msgstr "el mes passat" #: template/functions.php:89 #, php-format msgid "%d months ago" msgstr "fa %d mesos" #: template/functions.php:90 msgid "last year" msgstr "l'any passat" #: template/functions.php:91 msgid "years ago" msgstr "anys enrere" #: template.php:297 msgid "Caused by:" msgstr "Provocat per:" #: vcategories.php:188 vcategories.php:249 #, php-format msgid "Could not find category \"%s\"" msgstr "No s'ha trobat la categoria \"%s\""