This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ReCRM Redirect */ | |
AddEventHandler('main', 'OnBeforeProlog', 'ReCRM_redirect',1); | |
function ReCRM_redirect() | |
{ | |
CModule::IncludeModule("pr.recrm"); | |
$prReCrmData = new prReCrmData; | |
$prReCrmData->redirect(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
Options +FollowSymLinks | |
RewriteEngine On | |
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
Options +FollowSymLinks | |
RewriteEngine On | |
# Редирект с www на без www | |
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC] | |
RewriteRule ^(.*)$ http://%1/$1 [R=301,L] | |
# Удаляем index.php из адреса | |
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC] | |
# Не применяем к админке, иначе перестает работать страница Highload-блоки | |
RewriteCond %{REQUEST_URI} !/bitrix/admin/.* [NC] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create /etc/mercurial/hgrc.d/trust.rc | |
[trusted] | |
groups = bitrix | |
users = bitrix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Основной домен domain.ru | |
Зеркало domain2.ru | |
Настройка конфигов для сайта: | |
1. /etc/nginx/bx/site_avaliable/ | |
bx_ext_domain.ru.conf | |
bx_ext_ssl_domain.ru.conf | |
server_name domain.ru www.domain.ru domain2.ru www.domain2.ru; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hg revert --all -r-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. sudo chown -R $(whoami) /usr/local | |
2. brew update | |
3. sudo chmod 0755 /usr/local | |
4. sudo chown root:wheel /usr/local | |
5. brew upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.bootstrap-grid { | |
position: fixed; | |
left: 0; | |
right: 0; | |
top: 0; | |
bottom: 0; | |
z-index: 9999; | |
width: 100%; | |
height: 100%; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
global $wpdb; | |
define('MY_OLD_DOMAIN', 'http://olddomain.ru'); | |
define('MY_NEW_DOMAIN', 'http://newdomain.ru'); | |
function myWalkCallback(&$item, $key) | |
{ | |
$item = str_replace(MY_OLD_DOMAIN, MY_NEW_DOMAIN, $item); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#scp ~/.ssh/id_rsa.pub root@255.255.255.255:~ | |
# [ -d ~/.ssh ] || (mkdir ~/.ssh; chmod 711 ~/.ssh) | |
# cat ~/id_rsa.pub >> ~/.ssh/authorized_keys | |
# chmod 600 ~/.ssh/authorized_keys | |
# rm ~/id_rsa.pub | |
apt install -y software-properties-common | |
add-apt-repository ppa:ondrej/php | |
# add-apt-repository universe |