This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
# | |
# Install and configuration Nginx, PHP7-FPM on AWS with RHEL7 | |
# | |
# Install REMI and EPEL repos | |
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm | |
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm | |
# Install PHP and Nginx | |
yum --enablerepo=remi,remi-php70 install nginx php-fpm php-common |
This file contains hidden or 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
# | |
# /etc/nginx/nginx.conf | |
# | |
user http; | |
worker_processes 1; | |
worker_priority -10; | |
worker_rlimit_nofile 260000; | |
timer_resolution 100ms; |