nginx简单配置

blog.chensong.info.conf

修改apache配置文件 httpd.conf line:42

Listen 3001

1
2
3
4
5
6
7
8
9
10
11
server { 
listen 80;
server_name blog.chensong.info;
#wordpress
location / {
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://腾讯云ip:3001;
}
}

mc.chensong.info.conf

1
2
3
4
5
6
7
8
9
10
11
server { 
listen 80;
server_name mc.chensong.info;
#minecraft
location / {
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://腾讯云ip:3002;
}
}

nginx简单配置
http://example.com/2017-07-27/
作者
csorz
发布于
2017年7月27日
许可协议