T
T
Tech2021-07-07 13:41:59
Nginx
Tech, 2021-07-07 13:41:59

Where is the redirect of urls from uppercase to lowercase in this config?

Prompt, please, on a subject.

if ($request_uri ~* "^(.*/)index\.php$") {
        return 301 $1;
    	}
    
  location / {
                try_files       $uri $uri/ @bitrix;
      rewrite ^([^.]*[^/])$ $1/ permanent;
        }

        location ~ \.php$ {
                try_files       $uri @bitrix;
                fastcgi_pass    $php_sock;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
               include fastcgi_params;
        }
        location @bitrix {
                fastcgi_pass    $php_sock;
                include fastcgi_params;
                fastcgi_param SCRIPT_FILENAME $document_root/bitrix/urlrewrite.php;
               }
        location ~* /bitrix/admin.+\.php$ {
                try_files       $uri @bitrixadm;
                fastcgi_pass    $php_sock;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
        }
        location @bitrixadm{
                fastcgi_pass    $php_sock;
                include fastcgi_params;
                fastcgi_param SCRIPT_FILENAME $document_root/bitrix/admin/404.php;
        }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2021-07-07
@bioid

In this config - nowhere. This seems to be what the PHP script does.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question