Posts Tagged: nginx

Nginx Reverse Proxy

centos logo

Using CentOS 6 I installed Nginx with: yum install nginx and amended the config file for the default website i.e. vi /etc/nginx/conf.d/default.conf With the following content: upstream backend_st { server st.domain.co.uk:80; } server { listen 123.123.123.123:8080; server_name frontend.domain.co.uk; include /etc/nginx/default.d/*.conf; access_log /var/log/nginx/log/lamp.eeecs.qub.ac.uk.access.log main; error_log /var/log/nginx/log/lamp.eeecs.qub.ac.uk.error.log; root /usr/share/nginx/html; index index.html index.htm; location / { proxy_pass http://backend_st;… Read more »

Gitlab Omnibus – Change the Nginx Port

Ignore original text below. The correct method is to amend the /etc/gitlab/gitlab.rb file with the port e.g.: external_url “https://gitlab.domain.co.uk:8443” nginx[‘ssl_certificate’] = “/etc/pki/tls/certs/pubkey.pem” nginx[‘ssl_certificate_key’] = “/etc/pki/tls/private/privkey.pem” Then run: gitlab-ctl reconfigure   Doing a ps -ef | grep nginx allowed me to track down the configuration file: /var/opt/gitlab/nginx/etc/gitlab-http.conf That file specified the port number (see below) and… Read more »