nginx

Let us talk about scripts, HTML, Perl, PHP, apache, etc.
Post Reply
User avatar
Stevyn
SysOp
Posts:1776
Joined:Mon Nov 09, 2009 10:03 am
Location:Japan
Contact:
nginx

Post by Stevyn » Sat Jan 08, 2022 2:47 pm

https://nginx.org/

install

Code: Select all

apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring

curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \
    | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null
    
 echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \
http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \
    | sudo tee /etc/apt/sources.list.d/nginx.list
    
echo -e "Package: *\nPin: origin nginx.org\nPin: release o=nginx\nPin-Priority: 900\n" \
    | sudo tee /etc/apt/preferences.d/99nginx
    
 apt install nginx   
    
Contact me directly: Ironfeatherbooks (@) gmail.com

Image

User avatar
Stevyn
SysOp
Posts:1776
Joined:Mon Nov 09, 2009 10:03 am
Location:Japan
Contact:

Re: nginx

Post by Stevyn » Sat Jan 08, 2022 2:49 pm

geoip2
https://github.com/leev/ngx_http_geoip2_module
https://medium.com/@maxime.durand.54/ad ... b56e015763
https://dev.to/rdamrong/how-to-compile- ... 4-lts-5geb

Code: Select all

add-apt-repository ppa:maxmind/ppa
apt update

apt install geoipupdate 
apt install libmaxminddb0 libmaxminddb-dev mmdb-bin build-essential libpcre3-dev zlib1g-dev libssl-dev libxml2-dev libxslt-dev libgd-dev
add account info in

Code: Select all

/etc/GeoIP.conf 
DatabaseDirectory /usr/share/GeoIP

then update

Code: Select all

geoipupdate
Contact me directly: Ironfeatherbooks (@) gmail.com

Image

User avatar
Stevyn
SysOp
Posts:1776
Joined:Mon Nov 09, 2009 10:03 am
Location:Japan
Contact:

Re: nginx

Post by Stevyn » Sun Jan 09, 2022 1:15 pm

Contact me directly: Ironfeatherbooks (@) gmail.com

Image

Post Reply