Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
QA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mayi-operation
QA
Commits
d8b5f6b2
Commit
d8b5f6b2
authored
Feb 21, 2019
by
ChongmingDu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
service port forward
parent
e710c557
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
服务端口转发.md
+25
-0
No files found.
服务端口转发.md
0 → 100644
View file @
d8b5f6b2
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment