You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/InstallationGuide.md
+103-2
Original file line number
Diff line number
Diff line change
@@ -165,7 +165,40 @@ After the new installation of Nginx Plus, make the following configuration chang
165
165
166
166
- Change Nginx's http default server to port 8080. See the included `default.conf` file. After reloading nginx, the default `Welcome to Nginx` page will be located at http://localhost:8080.
167
167
168
-
- Use the dashboard.conf file provided. It will enable the /api endpoint, change the port to 9000, and provide access to the Plus dashboard. Place this file in the /etc/nginx/conf.d folder, and reload nginx. The Plus dashboard is now accessible at <linux-server-ip>:9000/dashboard.html. It should look similar to this:
168
+
```bash
169
+
cat /etc/nginx/conf.d/default.conf
170
+
# Nginx K8s Loadbalancer Solution
171
+
# Chris Akker, Jan 2023
172
+
# Example default.conf
173
+
# Change default_server to port 8080
174
+
#
175
+
server {
176
+
listen 8080 default_server; # Changed to 8080
177
+
server_name localhost;
178
+
179
+
#access_log /var/log/nginx/host.access.log main;
180
+
181
+
location / {
182
+
root /usr/share/nginx/html;
183
+
index index.html index.htm;
184
+
}
185
+
186
+
#error_page 404 /404.html;
187
+
188
+
# redirect server error pages to the static page /50x.html
189
+
#
190
+
error_page 500 502 503 504 /50x.html;
191
+
location = /50x.html {
192
+
root /usr/share/nginx/html;
193
+
}
194
+
195
+
### other sections removed for clarity
196
+
197
+
}
198
+
199
+
```
200
+
201
+
- Use the dashboard.conf file provided. It will enable the /api endpoint, change the port to 9000, and provide access to the Plus Dashboard. Place this file in the /etc/nginx/conf.d folder, and reload nginx. The Plus dashboard is now accessible at http://nginx-lb-server-ip:9000/dashboard.html. It should look similar to this:
- Enable the `stream` context for Nginx, which provides TCP load balancing. See the included nginx.conf file. Notice that the stream context is no longer commented out, the new folder is included, and a new stream.log logfile is used to track requests/responses.
190
223
191
-
- Configure Nginx Stream for TCP loadbalancing for this Solution. Place this file in the /etc/nginx/stream folder.
0 commit comments