Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-common
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
dc-common
Commits
1666e500
Commit
1666e500
authored
Mar 15, 2019
by
wutong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CD/CI
parent
9fc1858f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
13 deletions
+14
-13
index.html
data-nginx/index.html
+1
-1
nginx.conf
data-nginx/nginx.conf
+13
-12
No files found.
data-nginx/index.html
View file @
1666e500
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<head>
<head>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<title>
开发文档
</title>
<title>
Nginx
</title>
<link
href=
"https://cdn.bootcss.com/skeleton/2.0.4/skeleton.css"
rel=
"stylesheet"
>
<link
href=
"https://cdn.bootcss.com/skeleton/2.0.4/skeleton.css"
rel=
"stylesheet"
>
<script
src=
"https://cdn.bootcss.com/jquery/3.0.0-alpha1/jquery.js"
></script>
<script
src=
"https://cdn.bootcss.com/jquery/3.0.0-alpha1/jquery.js"
></script>
<script
src=
"https://cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.js"
></script>
<script
src=
"https://cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.js"
></script>
...
...
data-nginx/nginx.conf
View file @
1666e500
...
@@ -59,17 +59,6 @@ http {
...
@@ -59,17 +59,6 @@ http {
text/x-cross-domain-policy
;
text/x-cross-domain-policy
;
server
{
listen
80
;
server_name
111
.230.84.223
;
location
/
{
root
/usr/share/nginx/html
;
index
index.html
;
}
location
=
/50x.html
{
root
html
;
}
}
server
{
server
{
listen
80
;
listen
80
;
...
@@ -131,13 +120,25 @@ http {
...
@@ -131,13 +120,25 @@ http {
proxy_set_header
Host
$host
;
proxy_set_header
Host
$host
;
proxy_set_header
X-Real-IP
$remote_addr
;
proxy_set_header
X-Real-IP
$remote_addr
;
proxy_set_header
X-Forwarded-For
$proxy_add_x_forwarded_for
;
proxy_set_header
X-Forwarded-For
$proxy_add_x_forwarded_for
;
proxy_pass
http://172.31.3.47:2181
;
proxy_pass
http://172.31.3.47:2181
;
}
}
location
=
/50x.html
{
location
=
/50x.html
{
root
html
;
root
html
;
}
}
}
}
server
{
listen
80
;
server_name
111
.230.84.223
;
location
/
{
root
/usr/share/nginx/html
;
index
index.html
;
}
location
=
/50x.html
{
root
html
;
}
}
include
servers/*
;
include
servers/*
;
}
}
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