RobiNET://

system log

piątek, 24 stycznia 2020

What is my IP? The nginx way...

Pure nginx solution ;)
curl -sf ip.socha.it
or
curl -sf ip.socha.it/eol

Nginx configuration:
server {
        listen 80;
        server_name ip.socha.it;
        default_type "text/plain";
        location /eol {
          return 200 "$remote_addr\n";
        }
        location / {
          return 200 $remote_addr;
        }
}
Autor: Robert Socha o piątek, stycznia 24, 2020
Wyślij pocztą e-mailWrzuć na blogaUdostępnij w XUdostępnij w usłudze FacebookUdostępnij w serwisie Pinterest

Brak komentarzy:

Prześlij komentarz

Nowszy post Starszy post Strona główna
Subskrybuj: Komentarze do posta (Atom)

Archiwum bloga

  • ►  2023 (1)
    • ►  03 (1)
  • ►  2022 (7)
    • ►  12 (2)
    • ►  05 (3)
    • ►  04 (2)
  • ►  2021 (3)
    • ►  10 (1)
    • ►  04 (1)
    • ►  02 (1)
  • ▼  2020 (6)
    • ►  08 (1)
    • ►  05 (1)
    • ►  02 (1)
    • ▼  01 (3)
      • What is my IP? DNS way...
      • What is my IP? The nginx way...
      • Traefik v2 - private docker repository
  • ►  2019 (2)
    • ►  01 (2)
  • ►  2016 (4)
    • ►  04 (4)
  • ►  2015 (1)
    • ►  07 (1)
  • ►  2014 (11)
    • ►  11 (2)
    • ►  10 (1)
    • ►  09 (1)
    • ►  08 (1)
    • ►  06 (1)
    • ►  02 (3)
    • ►  01 (2)
  • ►  2013 (9)
    • ►  09 (1)
    • ►  07 (1)
    • ►  05 (2)
    • ►  04 (2)
    • ►  02 (1)
    • ►  01 (2)
  • ►  2012 (14)
    • ►  12 (1)
    • ►  10 (3)
    • ►  09 (4)
    • ►  08 (1)
    • ►  07 (3)
    • ►  06 (1)
    • ►  04 (1)
  • ►  2011 (1)
    • ►  12 (1)
  • ►  2010 (25)
    • ►  12 (2)
    • ►  07 (1)
    • ►  03 (7)
    • ►  02 (15)
  • ►  2009 (3)
    • ►  12 (2)
    • ►  11 (1)
Motyw Okno obrazu. Obsługiwane przez usługę Blogger.