diff --git a/test/services/nginx/install-nginx.sh b/test/services/nginx/install-nginx.sh index 5f44ce11d0a7fdf02e9c6d3cc306c9939263452a..8cecfdfdc6a14c68cf28a65f26fed4102217e1b7 100644 --- a/test/services/nginx/install-nginx.sh +++ b/test/services/nginx/install-nginx.sh @@ -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 diff --git a/test/services/nginx/nginx.conf b/test/services/nginx/nginx.conf new file mode 100644 index 0000000000000000000000000000000000000000..1c906bec4096ecd77a0eb8d46c091288841b92d5 --- /dev/null +++ b/test/services/nginx/nginx.conf @@ -0,0 +1,14 @@ + + +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