поздравления для всех.
Возникли проблемы с настройкой nginx-1.13.8
на Windows Server
.
При добавлении SSL на reverse_proxy
я получаю 404
Рабочая конфигурация (http):
server {
listen 80;
server_name example.com;
location / {
proxy_pass http://192.168.0.3:80;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
Конфигурация с помощью ssl:
server {
listen 443 ssl;
server_name example.com;
ssl on;
ssl_certificate ../cert/certcombined.crt;
ssl_certificate_key ../cert/private_rsa.key;
location / {
proxy_pass http://192.168.0.3:80;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
192.168.0.3
это apache на linux
Извините за "broken english"