Hi, i just setup a Nextcloud instance in conjunction with OnlyOffice. NC makes heavy use of mod_rewrite and i try to understand it. mod_rewrite isn't easy, so i have some questions and hope for help:
1. Is a RewriteCond just valid for the consequent rule or for all consequent rules ? 2. Example: "RewriteRule ^core/js/oc.js$ index.php [PT,E=PATH_INFO:$1]" Are Backreferences also in flags possible ? What is the content of $1 ? I thought backreferences belong to parts of the pattern which are in parentheses ? There are no parentheses. 3. Example: RewriteCond %{REQUEST_FILENAME} !\.(css|js|svg|gif|png|html|ttf|woff2?|ico|jpg|jpeg|map|webm|mp4|mp3|ogg|wav)$ The ! (exclamation mark) stands for a negotiation. Does that mean this condition is only fullfilled if the file does NOT have an extension like .css, .js ... ? 4. Example: RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}] What does this rule do ? All requests (.*) aren't substituted (-). But ... an environment variable HTTP_AUTHORIZATION is set to ... ? What means %{HTTP:Authorization} ? Is that also a kind of a backreference ? More questions will follow :-)) Thanks. Bernd -- Bernd Lentes Head of Systemadministration Institute for Metabolism and Cell Death (MCD) Building 25 - office 122 HelmholtzZentrum München bernd.len...@helmholtz-muenchen.de phone: +49 89 3187 1241 phone: +49 89 3187 3827 fax: +49 89 3187 2294 http://www.helmholtz-muenchen.de/mcd Helmholtz Zentrum München Helmholtz Zentrum Muenchen Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH) Ingolstaedter Landstr. 1 85764 Neuherberg www.helmholtz-muenchen.de Aufsichtsratsvorsitzende: MinDir.in Prof. Dr. Veronika von Messling Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Kerstin Guenther Registergericht: Amtsgericht Muenchen HRB 6466 USt-IdNr: DE 129521671 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org