Thank you Jeroen,

 

I tried to add your lines to my apache config file but it didn’t change 
anything.

 

I would like to add that I don’t have any problem when I navigate on my 
GitLab. My configuration works perfectly for that.

 

My only problem is that the details page of the projects show the original 
URL and I would like to see the URL released by my proxy Apache 
configuration instead on this pages (the screenshot that I sent with my 
first message show the problem).

 

Maybe I need to use nginx instead of Apache ?


Le lundi 26 octobre 2015 21:32:40 UTC+1, Jeroen de Neef a écrit :
>
> Hello Stéphane,
>
> I had the same situation, this was my fix.
> In your apache Virtual Host config, add this in your *<Location />*
>
> *AddOutputFilterByType SUBSTITUTE text/html*
> *Substitute "s|http://mygitlab.com:90|https://**mygitlab.com 
> <http://mygitlab.com>**:443|i"*
>
> However, just a heads up.
> Whenever you click on a link of an email notification of GitLab it will go 
> to the hostname and port of the server.
> In your case it will probably be a plain text HTTP server and not a 
> connection encrypted with SSL/TLS, to configure it on your GitLab server 
> you could read this readme 
> <https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/nginx.md>
> .
>
> Kind regards,
>
> Jeroen
>
> Op 26 okt. 2015 13:04 schreef "Stéphane JAILLIARD" <stephane....@gmail.com 
> <javascript:>>:
>
>> 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+u...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/gitlabhq/a5b2ca6c-e36d-4cd0-bdc3-a17085a46a42%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/gitlabhq/a5b2ca6c-e36d-4cd0-bdc3-a17085a46a42%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/7a2637c0-90fb-4717-aaa0-781e93945687%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to