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 80 default_server; | |
listen [::]:80 default_server; | |
# Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response. | |
return 301 https://$host$request_uri; | |
} | |
server { | |
listen 443 ssl http2; |
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
# openssl dhparam -out /etc/nginx/ssl/dhparam.pem 4096 | |
# vim /etc/nginx/nginx.conf | |
... | |
ssl_session_cache shared:SSL:10m; | |
ssl_session_timeout 10m; | |
ssl_protocols TLSv1.2; | |
ssl_prefer_server_ciphers on; | |
ssl_ciphers AES256+EECDH:AES256+EDH:!aNULL; | |
ssl_stapling on; | |
ssl_stapling_verify 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
# How to Install (LEMP) NginX, MySQL, PHP stack on Arch Linux |
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
TODO: Compare with: https://www.howtoforge.com/why-you-should-always-use-nginx-with-microcaching | |
mkdir /usr/share/nginx/cache | |
#mkdir /var/run/nginx/cache | |
location ~ \.php$ { | |
try_files $uri =404; | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
fastcgi_cache microcache; | |
fastcgi_cache_key $scheme$host$request_uri$request_method; | |
fastcgi_cache_valid 200 301 302 30s; |
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
# Set cache dir | |
proxy_cache_path /var/cache/nginx levels=1:2 | |
keys_zone=microcache:5m max_size=1000m; | |
# Virtualhost/server configuration | |
server { | |
listen 80; | |
server_name yourhost.domain.com; | |
# Define cached location (may not be whole site) |
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
# update system | |
apt update -y && apt upgrade -y && apt autoremove -y && apt autoclean | |
# reboot | |
reboot | |
# remove dash | |
dpkg-reconfigure dash | |
# stop and disable sendmail if enabled |
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 443 http2 ssl; | |
listen [::]:443 http2 ssl; | |
server_name server_IP_address; | |
ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt; | |
ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key; | |
ssl_dhparam /etc/ssl/certs/dhparam.pem; |
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://bing.com/webmaster/ping.aspx | |
http://ping.blo.gs/ | |
http://blog.goo.ne.jp/XMLRPC | |
http://blog.with2.net/ping.php | |
http://blogping.unidatum.com/RPC2 | |
http://blogpingr.de/ping/rpc2 | |
https://ping.blogs.yandex.ru/RPC2 | |
http://blogsearch.google.co.cr/ping/RPC2 | |
http://blogsearch.google.co.hu/ping/RPC2 | |
http://api.moreover.com/ping |
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 | |
// Test default memcached server. Load, then refresh. | |
if (class_exists('Memcache')) { | |
$meminstance = new Memcache(); | |
} else { | |
$meminstance = new Memcached(); | |
} | |
$meminstance->addServer("127.0.0.1",11211); |
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
https://www.wifi-libre.com/topic-626-base-de-datos-wpspin-original-open-source-actualizada-page-4.html | |
http://www.downloadwireless.net/scripts-live/patrones_conocidos.txt | |
100 Pins: | |
https://drive.google.com/open?id=0BzKLb-Q5X_sbSmN0UXZrWnRFREE | |
500 Pins: | |
https://drive.google.com/open?id=0BzKLb-Q5X_sbdVhkSEEyRkU1azQ | |
1000 Pins: |