B
B
brar2021-10-15 10:27:33
Nginx
brar, 2021-10-15 10:27:33

Am I changing the nginx location correctly?

location ~* ^/bitrix/admin/sale_(order|delivery|app_rest_sender).*\.php$ {
  add_header Content-Security-Policy "frame-ancestors https://адрес_вашего_Битрикс24;";
  proxy_pass $proxyserver;

With php-fpm as backend, will this location be like this?
location ~* ^/bitrix/admin/sale_(order|delivery|app_rest_sender).*\.php$ { 
                add_header Content-Security-Policy "frame-ancestors https://адрес_вашего_Битрикс24;";
                try_files       $uri @bitrix; 
                fastcgi_pass    $php_sock;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }

Or not true?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2021-10-15
@brar

It seems to be true, the only question is where the variable comes from php_sock. If from inside the nginx config, the dollar sign is not needed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question