Blame
Date:
Sun Jan 29 05:00:28 2023 UTC
Message:
Daily backup
01
2023-01-22
jrmu
version=pmwiki-2.2.130 ordered=1 urlencoded=1
02
2023-01-22
jrmu
agent=Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
03
2023-01-22
jrmu
author=monaco
04
2023-01-22
jrmu
charset=UTF-8
05
2023-01-22
jrmu
csum=
06
2023-01-22
jrmu
ctime=1635509880
07
2023-01-22
jrmu
host=185.173.204.99
08
2023-01-22
jrmu
name=Debian.Nginx
09
2023-01-22
jrmu
rev=1
10
2023-01-22
jrmu
targets=
11
2023-01-22
jrmu
text=# How to setup Nginx on Debian%0a%0aFirst of all you would need to "ssh" to you're server:%0a%0a ssh user@127.0.0.1%0a %0aAfter successfully loged in on you're server:%0a%0a sudo apt install nginx%0a%0aStart Nginx:%0a%0a sudo systemctl start nginx%0a%0aEnable to start at reboot:%0a%0a sudo systemctl enable nginx%0a%0aCheck Nginx status: %0a%0a systemctl status nginx %0a%0a> Output should be similar to: %0a%0a init@init ~ %25 systemctl status nginx%0a ● nginx.service - A high performance web server and a reverse proxy server%0a Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset:>%0a Active: active (running) since Fri 2021-10-29 14:02:24 CEST; 1min 22s ago%0a Docs: man:nginx(8)%0a Process: 3813 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_proce>%0a Process: 3815 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (c>%0a Main PID: 3816 (nginx)%0a Tasks: 3 (limit: 2201)%0a Memory: 6.2M%0a CPU: 49ms%0a CGroup: /system.slice/nginx.service%0a ├─3816 "nginx: master process /usr/sbin/nginx -g daemon on; master>%0a ├─3817 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "">%0a └─3818 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "">%0a init@init ~ %25 %0a%0aYou're default web root path is:%0a%0a cd /var/www/html/%0a %0a `ls`%0aOutput:%0a%0a init@init /var/www/html %25 ls%0a index.nginx-debian.html%0a init@init /var/www/html %25%0aCurl you're server IP address should give you the output of "Welcome to nginx."%0a%0a curl 127.0.0.1%0aOutput >%0a%0a init@init /var/www/html %25 curl 127.0.0.1%0a %3c!DOCTYPE html>%0a %3chtml>%0a %3chead>%0a %3ctitle>Welcome to nginx!%3c/title>%0a %3cstyle>%0a body {%0a width: 35em;%0a margin: 0 auto;%0a font-family: Tahoma, Verdana, Arial, sans-serif;%0a }%0a %3c/style>%0a %3c/head>%0a %3cbody>%0a %3ch1>Welcome to nginx!%3c/h1>%0a %3cp>If you see this page, the nginx web server is successfully installed and%0a working. Further configuration is required.%3c/p>%0a %0a %3cp>For online documentation and support please refer to%0a %3ca href="http://nginx.org/">nginx.org%3c/a>.%3cbr/>%0a Commercial support is available at%0a %3ca href="http://nginx.com/">nginx.com%3c/a>.%3c/p>%0a %0a %3cp>%3cem>Thank you for using nginx.%3c/em>%3c/p>%0a %3c/body>%0a %3c/html>%0a init@init /var/www/html %25%0a%0aEdit or setup specific domain names on Nginx:%0a%0a cd /etc/nginx/sites-enabled/%0a%0aCopy the default%0a%0a cp default example.domain%0a%0aYou will find there a helpful documentacion how to do that as example:%0a%0avim example.domain%0a%0a server {%0a listen 80;%0a listen [::]:80;%0a %0a server_name example.domain;%0a %0a root /var/www/example.domain;%0a index index.html;%0a %0a location / {%0a try_files $uri $uri/ =404;%0a }%0a }%0a
12
2023-01-22
jrmu
time=1635509880
13
2023-01-22
jrmu
author:1635509880=monaco
14
2023-01-22
jrmu
diff:1635509880:1635509880:=1,109d0%0a%3c # How to setup Nginx on Debian%0a%3c %0a%3c First of all you would need to "ssh" to you're server:%0a%3c %0a%3c ssh user@127.0.0.1%0a%3c %0a%3c After successfully loged in on you're server:%0a%3c %0a%3c sudo apt install nginx%0a%3c %0a%3c Start Nginx:%0a%3c %0a%3c sudo systemctl start nginx%0a%3c %0a%3c Enable to start at reboot:%0a%3c %0a%3c sudo systemctl enable nginx%0a%3c %0a%3c Check Nginx status: %0a%3c %0a%3c systemctl status nginx %0a%3c %0a%3c > Output should be similar to: %0a%3c %0a%3c init@init ~ %25 systemctl status nginx%0a%3c ● nginx.service - A high performance web server and a reverse proxy server%0a%3c Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset:>%0a%3c Active: active (running) since Fri 2021-10-29 14:02:24 CEST; 1min 22s ago%0a%3c Docs: man:nginx(8)%0a%3c Process: 3813 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_proce>%0a%3c Process: 3815 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (c>%0a%3c Main PID: 3816 (nginx)%0a%3c Tasks: 3 (limit: 2201)%0a%3c Memory: 6.2M%0a%3c CPU: 49ms%0a%3c CGroup: /system.slice/nginx.service%0a%3c ├─3816 "nginx: master process /usr/sbin/nginx -g daemon on; master>%0a%3c ├─3817 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "">%0a%3c └─3818 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "">%0a%3c init@init ~ %25 %0a%3c %0a%3c You're default web root path is:%0a%3c %0a%3c cd /var/www/html/%0a%3c %0a%3c `ls`%0a%3c Output:%0a%3c %0a%3c init@init /var/www/html %25 ls%0a%3c index.nginx-debian.html%0a%3c init@init /var/www/html %25%0a%3c Curl you're server IP address should give you the output of "Welcome to nginx."%0a%3c %0a%3c curl 127.0.0.1%0a%3c Output >%0a%3c %0a%3c init@init /var/www/html %25 curl 127.0.0.1%0a%3c %3c!DOCTYPE html>%0a%3c %3chtml>%0a%3c %3chead>%0a%3c %3ctitle>Welcome to nginx!%3c/title>%0a%3c %3cstyle>%0a%3c body {%0a%3c width: 35em;%0a%3c margin: 0 auto;%0a%3c font-family: Tahoma, Verdana, Arial, sans-serif;%0a%3c }%0a%3c %3c/style>%0a%3c %3c/head>%0a%3c %3cbody>%0a%3c %3ch1>Welcome to nginx!%3c/h1>%0a%3c %3cp>If you see this page, the nginx web server is successfully installed and%0a%3c working. Further configuration is required.%3c/p>%0a%3c %0a%3c %3cp>For online documentation and support please refer to%0a%3c %3ca href="http://nginx.org/">nginx.org%3c/a>.%3cbr/>%0a%3c Commercial support is available at%0a%3c %3ca href="http://nginx.com/">nginx.com%3c/a>.%3c/p>%0a%3c %0a%3c %3cp>%3cem>Thank you for using nginx.%3c/em>%3c/p>%0a%3c %3c/body>%0a%3c %3c/html>%0a%3c init@init /var/www/html %25%0a%3c %0a%3c Edit or setup specific domain names on Nginx:%0a%3c %0a%3c cd /etc/nginx/sites-enabled/%0a%3c %0a%3c Copy the default%0a%3c %0a%3c cp default example.domain%0a%3c %0a%3c You will find there a helpful documentacion how to do that as example:%0a%3c %0a%3c vim example.domain%0a%3c %0a%3c server {%0a%3c listen 80;%0a%3c listen [::]:80;%0a%3c %0a%3c server_name example.domain;%0a%3c %0a%3c root /var/www/example.domain;%0a%3c index index.html;%0a%3c %0a%3c location / {%0a%3c try_files $uri $uri/ =404;%0a%3c }%0a%3c }%0a
15
2023-01-22
jrmu
host:1635509880=185.173.204.99
IRCNow