Skip to content
Snippets Groups Projects
Commit 90208b5f authored by Rowan Powell's avatar Rowan Powell
Browse files

Added http-stub-module to NGINX configuration install

parent c2765ca1
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,20 @@ yes Y | sudo apt-get install nginx
# Need to set up basic stats as this not configured by default
# http://nginx.org/en/docs/http/ngx_http_stub_status_module.html
nginx -s reload
sudo rm ../etc/nginx/nginx.conf
sudo cp test/services/nginx/nginx.conf ../etc/nginx/nginx.conf
#cat test/services/nginx/nginx.conf > ../etc/nginx/nginx.conf
sudo nginx -s reload
# start NGINX
systemctl start nginx
\ No newline at end of file
sudo systemctl start nginx
# --with-http_stub_status_module
#nginx -V 2>&1 | grep -o with-http_stub_status_module
#/vagrant/../etc/nginx/nginx.config
# dpkg -l | grep -c nginx
\ No newline at end of file
events {
worker_connections 4096; ## Default: 1024
}
http {
server {
location /nginx_status {
stub_status on;
access_log off;
allow all;
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment