How to add a response header on nginx when using proxy_pass?

add_header works as well with proxy_pass as without. I just today set up a configuration where I’ve used exactly that directive. I have to admit though that I’ve struggled as well setting this up without exactly recalling the reason, though. Right now I have a working configuration and it contains the following (among others): server … Read more

Apache2 ProxyPass for Rails App Gitlab

I came across this gist that worked for me. In case it ever goes dead, I’ll repost it. unicorn config file Edit file /home/gitlab/gitlab/config/unicorn.rb Find line listen “#{app_dir}/tmp/sockets/gitlab.socket” and comment it. Uncomment line listen “127.0.0.1:8080” required modules for apache sudo a2enmod proxy sudo a2enmod proxy_balancer sudo a2enmod proxy_http sudo a2enmod rewrite /home/gitlab/gitlab/config/gitlab.conf <VirtualHost *:80> ServerName … Read more