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
#=========================================================================# | |
# Default Web Domain Template # | |
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # | |
# https://hestiacp.com/docs/server-administration/web-templates.html # | |
#=========================================================================# | |
server { | |
listen %ip%:%web_ssl_port% ssl; | |
server_name %domain_idn% %alias_idn%; | |
root %sdocroot%; |
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
(http.user_agent contains "ahrefs.com") or | |
(http.user_agent contains "AhrefsBot") or | |
(http.user_agent contains "ahrefsbot") or | |
(http.user_agent contains "aranhabot") or | |
(http.user_agent contains "aspiegel.com") or | |
(http.user_agent contains "AwarioBot") or | |
(http.user_agent contains "Baidu") or | |
(http.user_agent contains "BLEXBot") or | |
(http.user_agent contains "Blexbot") or | |
(http.user_agent contains "Bytespider") or |
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
server { | |
listen %ip%:%web_ssl_port% ssl; | |
server_name %domain_idn% %alias_idn%; | |
ssl_certificate %ssl_pem%; | |
ssl_certificate_key %ssl_key%; | |
location / { | |
proxy_http_version 1.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
<?php | |
$media_path = './media/catalog/product'; | |
$files = []; | |
$rii = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($media_path)); | |
foreach ($rii as $file) | |
{ | |
if ($file->isDir()){ continue;} |
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
dev/* | |
includes/* | |
media/* | |
!media/wysiwyg/* | |
!/media/dhl | |
/media/dhl/* | |
!/media/dhl/logo.jpg | |
!/media/downloadable |
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
# Kernel sysctl configuration file for Linux | |
# | |
# Version 1.14 - 2019-04-05 | |
# Michiel Klaver - IT Professional | |
# http://klaver.it/linux/ for the latest version - http://klaver.it/bsd/ for a BSD variant | |
# | |
# This file should be saved as /etc/sysctl.conf and can be activated using the command: | |
# sysctl -e -p /etc/sysctl.conf | |
# | |
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and sysctl.conf(5) for more details. |
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
function secondsToTime($sec) { | |
$ret_str = ''; | |
$day_length = 60 * 60 * 24; | |
$hour_length = 60 * 60; | |
$minute_length = 60; | |
if ($sec < 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
<DirectoryMatch ^.*/wp-content/uploads/.*> | |
AllowOverride all | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteRule ^(.*)\.php$ / [L,R=301] | |
</IfModule> | |
</DirectoryMatch> |
NewerOlder