E
E
Eugene2019-11-12 21:24:54
Nginx
Eugene, 2019-11-12 21:24:54

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;
    }
}

When accessing the address testproject.testname.ru/bitrixsetup.php, the bitrixsetup.php file is loaded
How to install bitrix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2019-11-13
@shambler81

https://www.1c-bitrix.ru/products/vmbitrix/
bash installer below

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question