Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
two-path-demo
Project
Project
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
demo
two-path-demo
Commits
4fe7acc5
Commit
4fe7acc5
authored
Jul 18, 2019
by
卢浩元
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init v1
parents
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
106 additions
and
0 deletions
+106
-0
Dockerfile
Dockerfile
+8
-0
default.conf
default.conf
+52
-0
50x.html
demo/50x.html
+21
-0
index.html
demo/index.html
+25
-0
No files found.
Dockerfile
0 → 100644
View file @
4fe7acc5
FROM
harbor.k2software.com.cn/library/nginx:alpine
RUN
mkdir
-p
/usr/share/nginx/demo/
COPY
demo/ /usr/share/nginx/demo/
COPY
default.conf /etc/nginx/conf.d/
CMD
["nginx", "-g", "daemon off;"]
default.conf
0 → 100644
View file @
4fe7acc5
server
{
listen
80
;
server_name
localhost
;
charset
utf
-
8
;
#access_log /var/log/nginx/host.access.log main;
location
/ {
root
/
usr
/
share
/
nginx
/
html
;
index
index
.
html
index
.
htm
;
}
location
/
demo
{
root
/
usr
/
share
/
nginx
;
#alias /usr/share/nginx/demo/;
index
index
.
html
index
.
htm
;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page
500
502
503
504
/
50
x
.
html
;
location
= /
50
x
.
html
{
root
/
usr
/
share
/
nginx
/
html
;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
demo/50x.html
0 → 100644
View file @
4fe7acc5
<!DOCTYPE html>
<html>
<head>
<title>
Error
</title>
<style>
body
{
width
:
35em
;
margin
:
0
auto
;
font-family
:
Tahoma
,
Verdana
,
Arial
,
sans-serif
;
}
</style>
</head>
<body>
<h1>
An error occurred.
</h1>
<p>
Sorry, the page you are looking for is currently unavailable.
<br/>
Please try again later.
</p>
<p>
If you are the system administrator of this resource then you should check
the error log for details.
</p>
<p><em>
Faithfully yours, nginx.
</em></p>
</body>
</html>
demo/index.html
0 → 100644
View file @
4fe7acc5
<!DOCTYPE html>
<html>
<head>
<title>
Welcome to nginx!
</title>
<style>
body
{
width
:
35em
;
margin
:
0
auto
;
font-family
:
Tahoma
,
Verdana
,
Arial
,
sans-serif
;
}
</style>
</head>
<body>
<h1>
Welcome to nginx!
</h1>
<p>
If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.
</p>
<p>
For online documentation and support please refer to
<a
href=
"http://nginx.org/"
>
nginx.org
</a>
.
<br/>
Commercial support is available at
<a
href=
"http://nginx.com/"
>
nginx.com
</a>
.
</p>
<p><em>
Thank you for using nginx.
</em></p>
</body>
</html>
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