Hi Same problem here. I've been installing gitlab on my vps with centos 6.7 and it seems that all has been going fone. in my /etc/gitlab/gitlab.rb I've set : external_url 'http://git.efestolab.uk:8080/'
then in the apache config, but email comes out with :8080 as well as the git address. Is there any other way to fix this ? (apart from using nginx) <VirtualHost 207.210.203.226:80> ServerName git.efestolab.uk ServerAlias www.git.efestolab.uk ServerAdmin webmas...@forge.efestolab.uk UseCanonicalName On ProxyRequests Off ServerSignature Off ProxyPreserveHost On AllowEncodedSlashes NoDecode ProxyPassMatch ^(/[^/]+\.(html|png|ico|css|txt))$ ! ProxyPass /assets ! ProxyPass / http://127.0.0.1:8080/ ProxyPassReverse / http://127.0.0.1:8181 ProxyPassReverse / http://127.0.0.1:8080/ RewriteEngine on #Forward these requests to gitlab-git-http-server RewriteCond %{REQUEST_URI} ^/[\w\.-]+/[\w\.-]+/repository/archive [OR] RewriteCond %{REQUEST_URI} ^/api/v3/projects/.*/repository/archive [OR] RewriteCond %{REQUEST_URI} ^/[\w\.-]+/[\w\.-]+/(info/refs|git-upload-pack|git-receive-pack)$ RewriteRule .* http://127.0.0.1:8181%{REQUEST_URI} [P,QSA] #Forward any other requests to GitLab Rails app (Unicorn) RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f [OR] RewriteCond %{REQUEST_URI} ^/uploads RewriteRule .* http://127.0.0.1:8080%{REQUEST_URI} [P,QSA,NE] DocumentRoot /opt/gitlab/embedded/service/gitlab-rails/public #Set up apache error documents, if back end goes down (i.e. 503 error) then a maintenance/deploy page is thrown up. ErrorDocument 404 /404.html ErrorDocument 422 /422.html ErrorDocument 500 /500.html ErrorDocument 503 /deploy.html <Directory /opt/gitlab/embedded/service/gitlab-rails/public/> Order allow,deny Allow from all </Directory> <Location /> AddOutputFilterByType SUBSTITUTE text/html Substitute "s|http://git.efestolab.uk:8080|http://git.efestolab.uk:80|i" ProxyPassReverse http://127.0.0.1:8080 ProxyPassReverse http://git.efestolab.uk Order allow,deny Allow from all </Location> UserDir enabled git </VirtualHost> Il giorno lunedì 26 ottobre 2015 13:04:18 UTC+1, Stéphane JAILLIARD ha scritto: > > Hello, > > My Gitlab is configured to use URL : http://mygitlab.com:90 > > I configured Apache as proxy server to have HTTS instead of HTTP. > > > In my /etc/gitlab/gitlab.rb file I have this : > > external_url 'http://mygitlab.com:90/' > > > In my /var/opt/gitlab/gitlab-rails/etc/gitlab.yml file I have this : > > ## GitLab settings > gitlab: > ## Web server settings (note: host is the FQDN, do not include http://) > host: mygitlab.com > port: 90 > https: false > > > This is my apache conf file for Gitlab : > > <VirtualHost *:443> > ServerAdmin********************** > ServerName mygitlab.com > > SSLEngine on > > SSLCertificateFile /etc/apache2/ssl/mygitlab.com.crt > SSLCertificateKeyFile /etc/apache2/ssl/mygitlab.com.key > > SSLCertificateChainFile /etc/apache2/ssl/GandiStandardSSLCA2.crt > SSLCertificateChainFile /etc/apache2/ssl/USERTrustRSAAddTrustCA.crt > > ProxyRequests Off > ProxyPreserveHost On > ProxyPass / http://127.0.0.1:90/ nocanon > > <Location /> > ProxyPassReverse / > Order deny,allow > Allow from all > </Location> > > </VirtualHost> > > > Actually Gitlab works fine on both http://mygitlab.com:90 and > https://mygitlab.com but on the second URL if I click on a project and > then on "HTTP" on the head of the page I see the http://mygitlab.com:90 > instead of https://mygitlab.com on the details. > > I tried to edit gitlab.yml and gitlab.rb but I'm not able to fix this. > > > I tried this : > > - Just edit gitlab.yml and restart gitlab > - Just edit gitlab.rb and restart gitlab > - Edit gitlab.yml and gitlab.rb ans restart gitlab > > None of this fixed my problem. > > I use GitLab 7.7.2 and Ubuntu 14.04 > > Note : mygitlab.com is not my real domain. > > Any ide to fix this ? > > Thank you. > -- You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/724cc0f3-2b46-446e-93d6-a3d84d0aab41%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.