Gitlab Omnibus Latest Version | Sub Page on Apache -
i using latest gitlab omnibus package successfully. trying use apache subpage can run other webpages next gitlab.
i managed use apache unable call other websites ( 403 ).
setup gitlab:
external_url 'http://server/gitlab'
nginx = false
nginx user = www-data
port 8181
apache vhost:
<virtualhost *:80> servername server serversignature off proxypreservehost on allowencodedslashes nodecode rewriteengine on <location /gitlab> proxypassreverse http://127.0.0.1:8181 proxypassreverse http://server/gitlab </location> rewriteengine on #forward requests gitlab-workhorse except existing files error documents #rewritecond %{document_root}/%{request_filename} !-f [or] #rewritecond %{document_root}/%{request_uri} ^/uploads/.* rewriterule ^(.*)gitlab(.*)$ http://127.0.0.1:8181%{request_uri} [p,qsa,ne] # needed downloading attachments documentroot /opt/gitlab/embedded/service/gitlab-rails/public errorlog /var/log/apache2/oldgit_error.log customlog /var/log/apache2/oldgit_forwarded.log common_forwarded customlog /var/log/apache2/oldgit_access.log combined env=!dontlog </virtualhost>
as might recognize , configuration file provided gitlab ce.
gitlab work expected not able call other web sides apache ( /var/www/html/{subsite} ).
error 403
tried vhost file give needed permissions ( granted ), error persists.
any experience scenario ?
debain 8 gitlab ce ( latest version ) apache 2.4 mod_rewrite mod_proxy mod_proxy_http
goal:
server/gitlab -> should pass gitlab ce
server/{subsite} -> should handled apache usual
i guess has rewrite rules, not sure anymore .
Comments
Post a Comment