E:\_pub\nginx-1.21.1>nginx
E:\_pub\nginx-1.21.1>nginx -s stop
http:
พบ 502 Bad Gateway server error response code indicates that the server,
while
acting as a gateway or proxy,
received an invalid response from the upstream server.
c:\xampp5\apache\conf\httpd.conf
Listen 81
apache_start.bat
c:\xampp7\apache\conf\httpd.conf
Listen 82
Listen 83
Right click บน notepad เลือก Run as administrator
เปิดแฟ้ม C:\Windows\System32\drivers\etc\hosts
127.0.0.1 www.burin.com
127.0.0.1 www.burin1.com
127.0.0.2 www.burin2.com
127.0.0.3 www.burin3.com
https:
https:
ใหม่
http {
upstream www.burin.com {
server 127.0.0.1:81;
server 127.0.0.1:82;
}
server {
location / {
proxy_pass http:
}
}
}
เดิม
worker_processes 1;
events { worker_connections 1024; }
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
location / { root html; index index.php index.html index.htm; }
}
}