Re: some questions to mod_rewrite

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- On Dec 9, 2020, at 6:02 PM, Eric Covener covener@xxxxxxxxx wrote:

Hi Eric,

thanks for your answer.
Now i'm struggling with RewriteRule ^(?:build|tests|config|lib|3rdparty|templates)/.* - [R=404,L]

Most is clear. The content of the parentheses () like build, tests .. is or-conjuncted by the pipe |, 
so only one of the patterns must appear.
But what is ?: ?
The question mark normally is a repeater for the prior character. But there is no one.
And wherefore is the colon ?
I gave https://perldoc.perl.org/perlre#Metacharacters a chance. It seems the ?: says that a match for (build|tests|config|lib|3rdparty|templates)
can't be used as a backreference. Right ? Where is the purpose of that ?

in my error_log with setting "LogLevel info rewrite:trace2":
[Fri Dec 11 15:44:50.666869 2020] [rewrite:trace1] [pid 3408] mod_rewrite.c(483): [client 146.107.126.166:57329] 146.107.126.166 - - 
[nc-mcd.helmholtz-muenchen.de/sid#7f9158e4f700][rid#7f9155a2a0a0/initial] [perdir /var/www/nextcloud/] pass through /var/www/nextcloud/

What is sid and rid ?

Thanks.

Bernd
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-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux