|
Rozmiar: 1028
Komentarz: + plik cfg; odnośniki do innych dokumentcji w ramach wiki
|
← Wersja 8 z 2023-10-07 10:13:21 ⇥
Rozmiar: 2897
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 27: | Linia 85: |
| * [[url1||target="_blank"]] * [[url2||target="_blank"]] * [[url3||target="_blank"]] * [[url4||target="_blank"]] |
1. <<Anchor(url1)>>[[url1||target="_blank"]] 1. <<Anchor(url2)>>[[url2||target="_blank"]] 1. <<Anchor(url3)>>[[url3||target="_blank"]] 1. <<Anchor(url4)>>[[url4||target="_blank"]] |
| Linia 33: | Linia 91: |
| * [[url1|]] * [[url2|]] * [[url3|]] * [[url4|]] |
## Jeżeli powołujesz się na URLa (nr) to nowe dopisuj na końcu. Albo trzeba przeredagować tekst. 1. <<Anchor(page1)>>[[doc1|]] 1. <<Anchor(page2)>>[[doc2|]] 1. <<Anchor(page3)>>[[doc3|]] 1. <<Anchor(page4)>>[[doc4|]] |
Wydrukuj tę dokumentację Pokaż jako slajdy
Spis Treści
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
Odnośniki do dokumentacji
(c) 2004 - 2026 BSD Serwis Krzysztof Stryjek. W przypadku błędów, poprawek proszę kontaktować się z administratorem wiki.
