Różnice pomiędzy wersjami 6 i 8 (Spinanie 2 wersji)
⇤ ← Wersja 6 z 2018-10-15 23:34:11 →
Rozmiar: 1273
Edytor: wtps0n
Komentarz: Punktatory liczbowe do URLi: możliwość referencji w dokumencie
← Wersja 8 z 2023-10-07 10:13:21 → ⇥
Rozmiar: 2897
Edytor: wtps0n
Komentarz: aktualizacja konfiguracji dla nginx
Usunięcia zostały oznaczone w ten sposób. Dodatki zostały oznaczone w ten sposób.
Linia 21: Linia 21:
== Plik konfiguracyjny nginx ==
{{{#!highlight nginx numbers=off
# komentarz
server {
    listen 217.182.201.233:80;
    listen [2001:41d0:602:4e9::16]:80;
    server_name www.domain.tld;

    include rtm-redirects-dbs.conf;
    include rtm-redirects-mua.conf;

    location ~ ^/(?!\.well-known) {
        return 301 https://$server_name$request_uri;
    }

    root /var/www/htdocs/virtuals/www.domain.tld/data;
    index index.html;

    include codenix/014-acmele.conf;
    include codenix/000-cmsploit.conf;
    include codenix/000-security-txt.conf;
    include codenix/004-dot-ht.conf;
    include codenix/004-err-page-404.conf;
    include codenix/004-err-page-5xx.conf;
    include codenix/004-pillaging-dvcs.conf;
    include codenix/005-no-logging.conf;
    include codenix/005-x-frame.conf;
    include expires.conf;
}

server {
    listen 217.182.201.233:443 http2 ssl;
    listen [2001:41d0:602:4e9::16]:443 http2 ssl;
    server_name www.domain.tld;

    include codenix/005-x-robots-tag-all.conf;
    include codenix/005-x-headers-security.conf;

    location /.well-known/ {}

    include rtm-redirects-dbs.conf;
    include rtm-redirects-mua.conf;

    root /var/www/htdocs/virtuals/www.domain.tld/data;
    index index.html;

    include codenix/004-dot-ht.conf;
    include codenix/004-err-page-404.conf;
    include codenix/004-err-page-5xx.conf;
    include codenix/004-pillaging-dvcs.conf;
    include codenix/005-no-logging.conf;
    include codenix/005-x-frame.conf;
    include codenix/015-csp-report.conf;

    include expires.conf;
}
}}}
Linia 28: Linia 86:
 2. <<Anchor(url2)>>[[url2||target="_blank"]]
 3. <<Anchor(url3)>>[[url3||target="_blank"]]
 4. <<Anchor(url4)>>[[url4||target="_blank"]]
 1. <<Anchor(url2)>>[[url2||target="_blank"]]
 1. <<Anchor(url3)>>[[url3||target="_blank"]]
 1. <<Anchor(url4)>>[[url4||target="_blank"]]
Linia 35: Linia 93:
 1. <<Anchor(page1)>>[[url1|]]
 1. <<Anchor(page2)>>[[url2|]]
 1. <<Anchor(page3)>>[[url3|]]
 1. <<Anchor(page4)>>[[url4|]]
 1. <<Anchor(page1)>>[[doc1|]]
 1. <<Anchor(page2)>>[[doc2|]]
 1. <<Anchor(page3)>>[[doc3|]]
 1. <<Anchor(page4)>>[[doc4|]]

Wydrukuj tę dokumentację Pokaż jako slajdy

Dokumentacja

Skrypt shell

ls /root

Plik konfiguracyjny

# komentarz
parametr = wartość

Plik konfiguracyjny nginx

# komentarz
server {
    listen 217.182.201.233:80;
    listen [2001:41d0:602:4e9::16]:80;
    server_name www.domain.tld;

    include rtm-redirects-dbs.conf;
    include rtm-redirects-mua.conf;

    location ~ ^/(?!\.well-known) {
        return 301 https://$server_name$request_uri;
    }

    root /var/www/htdocs/virtuals/www.domain.tld/data;
    index index.html;

    include codenix/014-acmele.conf;
    include codenix/000-cmsploit.conf;
    include codenix/000-security-txt.conf;
    include codenix/004-dot-ht.conf;
    include codenix/004-err-page-404.conf;
    include codenix/004-err-page-5xx.conf;
    include codenix/004-pillaging-dvcs.conf;
    include codenix/005-no-logging.conf;
    include codenix/005-x-frame.conf;
    include expires.conf;
}

server {
    listen 217.182.201.233:443 http2 ssl;
    listen [2001:41d0:602:4e9::16]:443 http2 ssl;
    server_name www.domain.tld;

    include codenix/005-x-robots-tag-all.conf;
    include codenix/005-x-headers-security.conf;

    location /.well-known/ {}

    include rtm-redirects-dbs.conf;
    include rtm-redirects-mua.conf;

    root /var/www/htdocs/virtuals/www.domain.tld/data;
    index index.html;

    include codenix/004-dot-ht.conf;
    include codenix/004-err-page-404.conf;
    include codenix/004-err-page-5xx.conf;
    include codenix/004-pillaging-dvcs.conf;
    include codenix/005-no-logging.conf;
    include codenix/005-x-frame.conf;
    include codenix/015-csp-report.conf;

    include expires.conf;
}

Skrypt mySQL

SELECT * FROM tbl_name;

Źródła w sieci internet

  1. url1

  2. url2

  3. url3

  4. url4

Odnośniki do dokumentacji

  1. doc1

  2. doc2

  3. doc3

  4. doc4


{i}  (c) 2004 - 2026 BSD Serwis Krzysztof Stryjek. W przypadku błędów, poprawek proszę kontaktować się z administratorem wiki.

WzorzecBsdFi (ostatnio edytowane 2023-10-07 10:13:21 przez wtps0n)