apt install bind9
Note: i have the IP : 192.168.1.109 by DHCP
edit the network settings file
<?php | |
$comptage = system("find . -type f -exec file {} \; | grep -i 'jpeg\|jpg' | wc -l"); | |
file_put_contents('comptage.txt', $comptage); | |
?> |
<!DOCTYPE html> | |
<html lang="{L_XML_LANGUAGE}"> | |
<head> | |
<title>{TITLE}</title> | |
<meta charset="windows-1252" /> | |
<meta property="og:title" content="{TITLE}" /> | |
<meta property="og:type" content="website" /> | |
# IF C_CANONICAL_URL #<meta property="og:url" content="{U_CANONICAL}" /># ENDIF # | |
# IF U_PICTURE #<meta property="og:image" content="{U_PICTURE}" /># ENDIF # | |
# IF C_DESCRIPTION #<meta name="description" content="{SITE_DESCRIPTION}" /># ENDIF # |
<IfModule mod_ssl.c> | |
<VirtualHost _default_:443> | |
ServerAdmin webmaster@localhost | |
DocumentRoot /var/www/html | |
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn, | |
# error, crit, alert, emerg. | |
# It is also possible to configure the loglevel for particular | |
# modules, e.g. |
# 301 --- articles/articles-4-13+les-resistances.php => articles/3-electronique/7-les-resistances/ | |
RewriteRule ^articles/articles-4-13\+les-resistances\.php$ /articles/3-electronique/7-les-resistances/? [L,R=301] |
<?php | |
# Enable OPcache | |
opcache.enable=1 | |
# The Memoru used by OPcache, default 64MB | |
# 128MB can ba good for 5 to 10 websites | |
opcache.memory_consumption=64 | |
# 4MB seem to be prety "low", 8MB or 16MB seem better for website with lot of same class/variables | |
# Quick "explanation" : if you have the string "foobar" 1000 times in your code, | |
# internally OPcache will store 1 immutable variable for this string and just use a pointer |
# | |
# /etc/sysctl.conf - Configuration file for setting system variables | |
# See /etc/sysctl.d/ for additional system variables. | |
# See sysctl.conf (5) for information. | |
# | |
#kernel.domainname = example.com | |
# Uncomment the following to stop low-level messages on console | |
#kernel.printk = 3 4 1 3 |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Simple Leaflet Map</title> | |
<meta charset="utf-8" /> | |
<link | |
rel="stylesheet" | |
href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" | |
/> | |
</head> |
# Methode 1 | |
# block specific domains | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# match example.org/com etc... | |
RewriteCond %{HTTP_REFERER} ^http://([^.]+\.)?example\. [NC] | |
# rewrite to specific file | |
RewriteRule \.(gif|jpg|bmp|jpeg|png)$ http://example.org/bad.jpg [R,NC,L] | |
</IfModule> |