mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
precision on regex
Precise to use $1 and $2 for $script_name & $path_info if admin use ^(.+?\.php)(/.*)?$ instead of ^(?<script_name>.+?\.php)(?<path_info>/.*)?$
This commit is contained in:
@@ -64,9 +64,11 @@ Nginx Configuration
|
||||
# regexp required pcre installed, otherwise try: ^(.+?\.php)(/.*)?$
|
||||
location ~ ^(?<script_name>.+?\.php)(?<path_info>/.*)?$ {
|
||||
try_files $script_name = 404;
|
||||
#Or try_files $1 = 404; if you use ^(.+?\.php)(/.*)?$
|
||||
|
||||
include fastcgi.conf;
|
||||
fastcgi_param PATH_INFO $path_info;
|
||||
#Or fastcgi_param PATH_INFO $2; if you use ^(.+?\.php)(/.*)?$
|
||||
fastcgi_param HTTPS on;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user