Архив рубрики: nginx

nginx proxy https and wordpress

Конфиг nginx upstream wp { server 10.1.2.2(тут можно прописать порт например «:8080»); server 10.1.2.3; } server { listen 80; server_name test.ru; return 301 https://test.ru$request_uri; access_log /var/log/nginx/test.ru-access.log; error_log /var/log/nginx/test.ru-error.log; location / { proxy_pass http://wp; } } server { listen 443 ssl; … Читать далее

Рубрика: nginx, Общее | Оставить комментарий