Answer the question
In order to leave comments, you need to log in
How to install bitrix?
Good afternoon.
Tell me how to configure the nginx config to install Bitrix
Config
server {
charset utf-8;
client_max_body_size 128M;
listen 80;
server_name testproject.testname.ru; root /var/www/mysite; index hello.txt;
access_log /var/log/nginx/testname.ru.access.log;
error_log /var/log/nginx/mtestname.ru.error.log;
allow 192.168.1.5;
allow 8.8.8.8;
allow 1.1.1.1;
allow 127.0.0.1;
deny all;
location /hello.txt {
try_files $uri $uri/ /hello.txt$is_args$args;
}
location /redirect {
rewrite ^ $scheme://www.blog.htc-cs.ru;
}
location /poem {
add_header POEM 'Мой дядя самыл лучших правил';
try_files $uri $uri/ /poem.txt$is_args$args;
}
location / {
index index.html index.htm index.php;
}
location ~ .php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/mysite$fastcgi_script_name;
}
}
Answer the question
In order to leave comments, you need to log in
https://www.1c-bitrix.ru/products/vmbitrix/
bash installer below
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question