Gitlab is now using as it's primary address. Please update your bookmarks. FAQ.

Commit 7faffcca authored by Piotr Gawron's avatar Piotr Gawron
Browse files

when installing make sure that we have IP logged behind proxy

parent e7262419
......@@ -71,6 +71,14 @@ sudo a2enmod ssl
sudo sed -i.bak '/ProxyPass/d' /etc/apache2/sites-enabled/default-ssl.conf
sudo sed -i '3i\ ProxyPass / http://localhost/\n ProxyPassReverse / http://localhost/\n' /etc/apache2/sites-enabled/default-ssl.conf
#log IPs behind reverse proxy
echo >>/etc/apache2/apache2.conf
echo "RemoteIPHeader X-Forwarded-For" >> /etc/apache2/apache2.conf
echo "RemoteIPTrustedProxy" >> /etc/apache2/apache2.conf
echo "RemoteIPInternalProxy" >> /etc/apache2/apache2.conf
echo 'LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined' >> /etc/apache2/apache2.conf
a2enmod remoteip
sudo service apache2 restart
#turn on backups
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment