Skip to content

Commit 775b32b

Browse files
committed
Add examples and fix link in 1.26/test directory
Signed-off-by: Petr "Stone" Hracek <[email protected]>
1 parent b7adbe8 commit 775b32b

File tree

6 files changed

+119
-1
lines changed

6 files changed

+119
-1
lines changed

1.26/test/test-app

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../examples/1.24/test-app
1+
../../examples/1.26/test-app

examples/1.26/test-app/index.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<html>
2+
<head>
3+
<title>Test NGINX passed</title>
4+
</head>
5+
<body>
6+
<h1>NGINX is working</h1>
7+
</body>
8+
</html>

examples/1.26/test-app/index2.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<html>
2+
<head>
3+
<title>Test NGINX passed</title>
4+
</head>
5+
<body>
6+
<h1>NGINX2 is working</h1>
7+
</body>
8+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
server {
2+
listen 8080;
3+
server_name localhost2;
4+
root /opt/app-root/src;
5+
index index2.html;
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
location /aliased/ {
2+
alias /opt/app-root/src/;
3+
}

examples/1.26/test-app/nginx.conf

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# For more information on configuration, see:
2+
# * Official English Documentation: http://nginx.org/en/docs/
3+
# * Official Russian Documentation: http://nginx.org/ru/docs/
4+
5+
6+
worker_processes auto;
7+
error_log /var/log/nginx/error.log;
8+
pid /run/nginx.pid;
9+
10+
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
11+
include /usr/share/nginx/modules/*.conf;
12+
13+
events {
14+
worker_connections 1024;
15+
}
16+
17+
http {
18+
# perl_modules /opt/app-root/etc/perl;
19+
# perl_require Version.pm;
20+
# perl_set $perl_version Version::installed;
21+
22+
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
23+
'$status $body_bytes_sent "$http_referer" '
24+
'"$http_user_agent" "$http_x_forwarded_for"';
25+
26+
27+
sendfile on;
28+
tcp_nopush on;
29+
tcp_nodelay on;
30+
keepalive_timeout 65;
31+
types_hash_max_size 2048;
32+
33+
include /etc/nginx/mime.types;
34+
default_type application/octet-stream;
35+
36+
# Load modular configuration files from the /etc/nginx/conf.d directory.
37+
# See http://nginx.org/en/docs/ngx_core_module.html#include
38+
# for more information.
39+
include /opt/app-root/etc/nginx.d/*.conf;
40+
41+
server {
42+
listen 8080 default_server;
43+
listen [::]:8080 default_server;
44+
server_name _;
45+
root /opt/app-root/src;
46+
47+
# Load configuration files for the default server block.
48+
include /opt/app-root/etc/nginx.default.d/*.conf;
49+
50+
location / {
51+
}
52+
53+
error_page 404 /404.html;
54+
location = /40x.html {
55+
}
56+
57+
error_page 500 502 503 504 /50x.html;
58+
location = /50x.html {
59+
}
60+
}
61+
62+
# Settings for a TLS enabled server.
63+
#
64+
# server {
65+
# listen 443 ssl http2 default_server;
66+
# listen [::]:443 ssl http2 default_server;
67+
# server_name _;
68+
# root /opt/app-root/src;
69+
#
70+
# ssl_certificate "/etc/pki/nginx/server.crt";
71+
# ssl_certificate_key "/etc/pki/nginx/private/server.key";
72+
# ssl_session_cache shared:SSL:1m;
73+
# ssl_session_timeout 10m;
74+
# ssl_ciphers PROFILE=SYSTEM;
75+
# ssl_prefer_server_ciphers on;
76+
#
77+
# # Load configuration files for the default server block.
78+
# include /opt/app-root/etc/nginx.default.d/*.conf;
79+
#
80+
# location / {
81+
# }
82+
#
83+
# error_page 404 /404.html;
84+
# location = /40x.html {
85+
# }
86+
#
87+
# error_page 500 502 503 504 /50x.html;
88+
# location = /50x.html {
89+
# }
90+
# }
91+
92+
}
93+

0 commit comments

Comments
 (0)