Commit d8b5f6b2 by ChongmingDu

service port forward

parent e710c557
1. 找到nginx配置文件目录
1. 找到nginx配置文件目录
2. 在配置文件目录下生成一个文件,写入如下内容:
```
server {
listen 80;
server_name 转发到哪个地址;
access_log 日志位置 main;
error_log 错误日志位置 ;
location / {
proxy_pass http://代理到那个位置;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
```
3. 重启nginx。nginx -s reload
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment