server {
listen 80;
server_name example1.alexdeg.ru;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://127.0.0.1:3001;
}
}
default_socket_timeout = 360
curl -IL https://woodbigdata.com/test
HTTP/1.1 200 OK
...
curl -iL https://woodbigdata.com/404.html
HTTP/1.1 404 Not Found
...
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.18.0 (Ubuntu)</center>
</body>
</html>
php -d display_errors=on -r 'echo (file_get_contents("https://vk.com"));'
nginx -T
curl -s -o /dev/null -D - https://vk.com
openssl s_client -connect vk.com:443