nginx_veebilehe_seadistusfail_naidis_ssl_toeta
See on dokumendi vana versioon!
#
# Veebilehe test.minudomeen.ee seadistus
#
server {
# Turvapäised
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Permissions-Policy "geolocation=(), microphone=(), camera=()" always;
add_header X-XSS-Protection "1; mode=block" always;
# Veebilehe juurkataloog
root /var/www/test.minudomeen.ee;
# Indeksfailid
index index.php index.html index.htm;
# Serveri nimi
server_name test.minudomeen.ee;
# Asukoht, kus asuvad veebifailid
location / {
try_files $uri $uri/ =404;
}
# PHP skriptide tugi Nginx'ile läbi FastCGI protokolli
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php-fpm.sock;
}
# Kuula ainult pordil 8080 (HTTP)
listen 8080;
listen [::]:8080;
# -------------------------------------------------------------------
# Logfailid
# access_log - kõik päringud (kliendi IP, URL, vastuse kood jne)
# error_log - Nginxi enda vead, PHP-probleemid
# warn - logimistase
# Logitase - debug, info, notice, warn, error, crit, alert, emerg
# -------------------------------------------------------------------
access_log /var/log/nginx/test.minudomeen.ee.access.log;
error_log /var/log/nginx/test.minudomeen.ee.error.log warn;
}
nginx_veebilehe_seadistusfail_naidis_ssl_toeta.1761736957.txt.gz · Viimati muutnud: persoon Reidar S.
