Coggle requires JavaScript to display documents.
sudo systemctl stop nginx
sudo systemctl start nginx
sudo systemctl restart nginx
sudo systemctl reload nginx
sudo service nginx reload
sudo systemctl disable nginx
sudo systemctl enable nginx
sudo apt-get update
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get install python-certbot-nginx
sudo certbot --nginx -d example.com -d www.example.com
sudo certbot --nginx certonly
sudo certbot --nginx -d api.example.co.uk
sudo certbot renew --dry-run
server_name example.com www.example.com
sudo nginx -t
sudo ufw status
sudo ufw allow "Nginx Full"
sudo ufw delete allow "Nginx HTTP"
/usr/share/nginx
sudo apt-get install nginx
sudo ufw app list
sudo ufw allow "Nginx HTTP"
systemctl status nginx
sudo service nginx status
ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//'
wget http://nginx.org/keys/nginx_signing.key
sudo apt-key add nginx_signing.key
echo "deb http://nginx.org/packages/mainline/ubuntu/ trusty nginx" | sudo tee -a /etc/apt/sources.list
echo "deb-src http://nginx.org/packages/mainline/ubuntu/ trusty nginx" | sudo tee -a /etc/apt/sources.list
/var/www/html/
/etc/nginx
/etc/nginx/sites-available/
sites-enabled
/etc/nginx/sites-enabled
/var/log/nginx/access.log
/var/log/nginx/error.log
listen
server_name
server{ listen:192.168.1.10}
server{ listen:80 server_name example.com}
*
location option_modifier location_match{ ... }
location_match
location /site
site/page1/index.html
=
/tortoise.jpg
/FLOWER.PNG
location ~ \.(jpe?g|png|gif|ico)${ ... }
location ~* \.(jpe?g|png|gif|ico)${ ... }
optional_modifier
index
try_files
rewrite
error_page
root /var/www/main;
location {
try_files $uri $uri.html $uri/ /fallback/index.html; }
location /fallback {
root /var/www/another}
rewrite ^/rewriteme/(.*)$ /$1 last;
/rewriteme/hello
/
{ }
Listen
$host
location match_modifier location_match{ ...
location /other {
location nested_match{ .. } }
access_log
error_log
gzip
keepalive...
limit_except GET HEAD{...
yum -y update
cd /etc/haproxy/
mv haproxy.cfg haproxy.cfg.orig
vi haproxy.cfg
vi /etc/rsyslog.conf
$ModLoad imudp
$UDPServer Run 514
cd /etc/rsyslog.d/
vi haproxy.conf
systemctl restart rsyslog
systemctl start haproxy
systemctl enable haproxy
sudo apt-get install haproxy
haproxy -v
/etc/hosts/
sudo nano /etc/hostname
haproxy.local
sudo nano /etc/default/haproxy
ENABLED = 1
sudo service haproxy start
/etc/haproxy/haproxy.cfg
sudo haproxy -c -f /etc/haproxy/haproxy.cfg
sudo service haproxy restart