Похожие чаты

Hi, I'm trying to configure 3 ssl sites under nginx

and have the ssl certs loaded accordingly to the domain name:
As now my default server config is:

server {
listen 1880;
listen 8443 ssl;

if ($host ~ ^www\.(?<domain>.+)$) {
rewrite / $scheme://$domain$request_uri permanent;
}
if ($scheme ~ http://) {
rewrite / https://$hostname:8443$request_uri permanent;
}
ssl_certificate /etc/letsencrypt/live/$hostname/cert.pem;
ssl_certificate_key /etc/letsencrypt/live/$hostname/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
root /var/www/html/cdbd/web;
index index.html;

I'm new to nginx and probably not seeing something, the cert for one domain work but not for the other 2 and fails with error 0200100D, file rights access, nginx is started as a service, as root, the owner of the cert files

3 ответов

12 просмотров

Стикер

Стикер

The nginx is started as root, but it drops the permissions quickly after start. usually this is www-data. So the relevant owner of the certs is www-data. ssl_protocols should be tls1.3 and maybe 1.2, but everything else is an security issue

Похожие вопросы

Обсуждают сегодня

я не магистр хаскеля, но разве не может лейзи тип конвертнуться в не-лейзи запросив вычисление содержимого прям при инициализации?
deadgnom32 λ madao
49
30 BCH videos in Hausa Language successfully delivered. In December 2023, I created a Flipstarter to produce Bitcoin Cash videos in the Hausa language for greater outreach an...
Munnir
5
читать файл максимально быстро? странный вопрос))
zamtmn
53
Интересно, а майкрософт 365 может запустится на линукс минт?
Лисицка
17
How to create an OS in C? what to study?
Linus
18
Компания Elif ищет менеджера проектов, который будет заниматься поиском и ведением новых проектов. Прежде чем приступить к работе, вам нужно пройти наш недельный курс, где вы ...
Elif
5
братва! где куличи брать?
Alöscha
25
Привет, кто может сделать юзербота с апи? Задачи: - создавать группы - создавать каналы - задавать для созданных каналов аватарку или эмоджи, имя группы - добавлять в группы...
Lencore
11
на сколько можно увеличить swap при 16Гб оперативы?
Хасан Ахмаев
11
тоесть, указав return eax, сгенерируется никому ненужная инструкция mov eax,eax ?
Aiwan \ (•◡•) / _bot
24
Карта сайта