我的所有配置nginx
vim /etc/nginx/conf.d/halo+protainer.conf
server {
listen 80;
server_name www.guoguogood.top;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
index info.php index.html index.htm;
proxy_pass http://127.0.0.1:8090;
}
}
server {
listen 80;
server_name pdf.guoguogood.top;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
index info.php index.html index.htm;
proxy_pass http://172.17.0.5:8080;
}
}
server {
listen 80;
server_name draw.guoguogood.top;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
index info.php index.html index.htm;
proxy_pass http://172.17.0.6:8080;
}
}
server {
listen 80;
server_name protainer.guoguogood.top;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
index info.php index.html index.htm;
proxy_pass http://127.0.0.1:9000;
}
}
server {
listen 80;
server_name uptime.guoguogood.top;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
index info.php index.html index.htm;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:3001/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}