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
ssl_ciphers 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDH$ | |
ssl_prefer_server_ciphers on; |
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
<?php | |
// [[!inline?&file=`css/critical.css`]] | |
$assetsPath = $modx->getOption('assets_path'); | |
$file = !empty($file) ? $file : $modx->getOption('file', $scriptProperties, ''); | |
$myfile = fopen($assetsPath . $file, "r"); | |
if (!$myfile){ return "";} | |
$inlneCSS = ""; | |
while(!feof($myfile)) { |
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
<link rel="canonical" href="[[~[[*id]]? &scheme=`full`]]" /> | |
[[!MinifyXCustom? | |
&minifyJs=`1` | |
&minifyCss=`1` | |
&jsFilename=`mysite` | |
&cssFilename=`mysite` | |
&jsPlaceholder=`mysite.javascript` | |
&cssPlaceholder=`inline.css` | |
&cssSources=` | |
assets/css/style.css, |
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
location /blog/ { | |
try_files $uri $uri/ /blog/index.php?$args; | |
error_page 404 /404.html; | |
} | |
location ~* "/*\.(conf)$" { | |
deny all; | |
return 404; | |
} |
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
<? | |
/* Optional: Advanced phpMyAdmin features */ | |
$cfg['Servers'][$i]['pmadb'] = $dbname; | |
$cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark'; | |
$cfg['Servers'][$i]['relation'] = 'pma__relation'; | |
$cfg['Servers'][$i]['table_info'] = 'pma__table_info'; | |
$cfg['Servers'][$i]['table_coords'] = 'pma__table_coords'; | |
$cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages'; | |
$cfg['Servers'][$i]['column_info'] = 'pma__column_info'; | |
$cfg['Servers'][$i]['history'] = 'pma__history'; |
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
<FilesMatch "^.*\.(?:pug|jade|cfg|config)$"> | |
Order Deny,Allow | |
Deny from all | |
Allow from 127.0.0.1 | |
</FilesMatch> |
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
# Solve Russian code page problem: | |
# http://www.yotadom.com/revo-poisk-po-sajtu-simplesearch-modx.html | |
[[!SimpleSearchForm? &searchIndex=`s`]] | |
[[!SimpleSearch? &searchIndex=`s`]] |
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
location ~ ^/articles/(.*) { | |
return 301 /blog/$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
# Closed for crawlers | |
User-agent: * | |
Disallow: / |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>October CMS - {{ this.page.title }}</title> | |
<meta name="description" content="{{ this.page.meta_description }}"> | |
<meta name="title" content="{{ this.page.meta_title }}"> | |
<meta name="author" content="OctoberCMS"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="generator" content="OctoberCMS"> |
OlderNewer