Gate-nginx:
container_name: Gate-nginx
image: nginx:latest
ports:
- "8000:80"
volumes:
- ./Gate/public:/var/www
- ./Gate/configs/nginx/default.conf:/etc/nginx/sites-enabled/default
- ./Gate/configs/nginx/default.conf:/etc/nginx/sites-available/default
links:
- Gate-php
Gate-php:
container_name: Gate-php
image: php:7-fpm
volumes:
- ./Gate/public:/var/www
127.0.0.1 localhost
194.67.112.8 xn----7sbhdycib3bahm3ad4m.xn--p1ai
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
server {
index index.php index.html;
server_name Gate-nginx;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
root /var/www;
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass Gate-php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
194.67.112.8 xn----7sbhdycib3bahm3ad4m.xn--p1ai
Gate-nginx:
image: nginx:latest
ports:
- "8000:80"
volumes:
- ./Gate/public:/var/www
- ./Gate/configs/nginx/default.conf:/etc/nginx/sites-enabled/default
- ./Gate/configs/nginx/default.conf:/etc/nginx/sites-available/default
links:
- Gate-php
Gate-php:
image: php:7-fpm
volumes:
- ./Gate/public:/var/www
server {
index index.php index.html;
server_name Gate-nginx;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
root /var/www;
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass Gate-php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
server_name Gate-nginx;
server_name xn----7sbhdycib3bahm3ad4m.xn--p1ai;
server {
index index.php index.html;
server_name mysite.local;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
root /var/www;
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass Gate-php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
<?php
$arUrlRewrite=array (
0 =>
array (
'CONDITION' => '#^\\/uslugi-i-tseny\\/([^\\/?]+)\\/*\\?*([^\\/?]*)$#',
'RULE' => 'CODE=$1&$2',
'ID' => '',
'PATH' => '/uslugi-i-tseny/index.php',
'SORT' => 100,
),
1 =>
array (
'CONDITION' => '#^/online/([\\.\\-0-9a-zA-Z]+)(/?)([^/]*)#',
'RULE' => 'alias=$1',
'ID' => '',
'PATH' => '/desktop_app/router.php',
'SORT' => 100,
),
2 =>
array (
'CONDITION' => '#^/otzyvy-o-deteyling-tsentrah/#',
'RULE' => '',
'ID' => 'bitrix:catalog',
'PATH' => '/otzyvy-o-deteyling-tsentrah/index.php',
'SORT' => 100,
),
3 =>
array (
'CONDITION' => '#^/otzyvy-o-deteyling-marketah/#',
'RULE' => '',
'ID' => 'bitrix:catalog',
'PATH' => '/otzyvy-o-deteyling-marketah/index.php',
'SORT' => 100,
),
4 =>
array (
'CONDITION' => '#^/bitrix/services/ymarket/#',
'RULE' => '',
'ID' => '',
'PATH' => '/bitrix/services/ymarket/index.php',
'SORT' => 100,
),
5 =>
array (
'CONDITION' => '#^/online/(/?)([^/]*)#',
'RULE' => '',
'ID' => '',
'PATH' => '/desktop_app/router.php',
'SORT' => 100,
),
6 =>
array (
'CONDITION' => '#^/deteyling-tsentry/#',
'RULE' => '',
'ID' => 'bitrix:catalog',
'PATH' => '/deteyling-tsentry/index.php',
'SORT' => 100,
),
7 =>
array (
'CONDITION' => '#^/stssync/calendar/#',
'RULE' => '',
'ID' => 'bitrix:stssync.server',
'PATH' => '/bitrix/services/stssync/calendar/index.php',
'SORT' => 100,
),
8 =>
array (
'CONDITION' => '#^/personal/lists/#',
'RULE' => '',
'ID' => 'bitrix:lists',
'PATH' => '/personal/lists/index.php',
'SORT' => 100,
),
9 =>
array (
'CONDITION' => '#^/deteyling-shop/#',
'RULE' => '',
'ID' => 'bitrix:catalog',
'PATH' => '/deteyling-shop/index.php',
'SORT' => 100,
),
10 =>
array (
'CONDITION' => '#^/content/faq/#',
'RULE' => '',
'ID' => 'bitrix:support.faq',
'PATH' => '/content/faq/index.php',
'SORT' => 100,
),
11 =>
array (
'CONDITION' => '#^/produktsiya/#',
'RULE' => '',
'ID' => 'bitrix:catalog',
'PATH' => '/produktsiya/index.php',
'SORT' => 100,
),
12 =>
array (
'CONDITION' => '#^/portfolio/#',
'RULE' => '',
'ID' => 'bitrix:catalog',
'PATH' => '/portfolio/index.php',
'SORT' => 100,
),
13 =>
array (
'CONDITION' => '#^/aktsii/#',
'RULE' => '',
'ID' => 'bitrix:catalog',
'PATH' => '/aktsii/index.php',
'SORT' => 100,
),
14 =>
array (
'CONDITION' => '#^/blog/#',
'RULE' => '',
'ID' => 'bitrix:catalog',
'PATH' => '/blog/index.php',
'SORT' => 100,
),
15 =>
array (
'CONDITION' => '#^/club/#',
'RULE' => '',
'ID' => 'bitrix:socialnetwork',
'PATH' => '/club/index.php',
'SORT' => 100,
),
);
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^pd\.info$ [NC]
RewriteRule ^(.*)$ https://pd.info/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
su user1
$git_branches = exec("cd ".$_SERVER["DOCUMENT_ROOT"]." && git config --global user.name 'vekovis' && git commit -m 'test'", $stdin, $stderr);
fatal: $HOME is not defined
128
Array
(
[0] =>
[1] => *** Please tell me who you are.
[2] =>
[3] => Run
[4] =>
[5] => git config --global user.email "you@example.com"
[6] => git config --global user.name "Your Name"
[7] =>
[8] => to set your account's default identity.
[9] => Omit --global to set the identity only in this repository.
[10] =>
[11] => fatal: empty ident name (for ) not allowed
)
fatal: empty ident name (for ) not allowed