Skip to content

vm broker ‐ quick nginx server

Allan Roger Reid edited this page Dec 4, 2023 · 1 revision

https://www.nginx.com/resources/wiki/start/topics/tutorials/install/

Create a vm broker instance with a newer Ubuntu version e.b. 23.04. Note the lack of a port 80.

Run

sudo apt update
sudo apt install nginx
image

Modify the default server port to one within the range of HTTP 10000-10099 e.g. 10080

sudo vi /etc/nginx/sites-available/default

Then change

listen 80 default_server;
listen [::]:80 default_server;

to

listen 10080 default_server;
listen [::]

Start nginx (or, in its case, restart)

sudo systemctl start nginx

or

sudo nginx -t && sudo nginx -s reload

Curl or navigate to the site:port indicated e.g. http://test-nginx-80.minio.training:10080

If you can cURL but not navigate, then you may have to add the high port to your list of allowed ports e.g. in Firefox modify the following parameter network.security.ports.banned.override with 10080. See https://support.mozilla.org/en-US/questions/1083282 image

image
Clone this wiki locally