Our server (Centos 7) server Apache Userdir is enabled and developers were able to host a web applications in their home directory. However this changed when Gitlab 7 was installed on the server using the existing Apache not Nginx. Developers can no longer access their web applications on the browser. Any url of the form http://192.168.109.38/~user/web_app1
is redirected to http://192.168.109.38//users/sign_in
- Gitlab sign-in page.
gitlab.conf content:
<VirtualHost *:80>
ServerName localhost
ServerSignature Off
ProxyPreserveHost On
Order deny,allow Allow from allProxyPassReverse [http://127.0.0.1:8080]
ProxyPassReverse [http://192.168.109.38]
RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule .* [http://127.0.0.1:8080]%{REQUEST_URI} [P,QSA]
needed for downloading attachments
DocumentRoot /opt/gitlab/embedded/service/gitlab-rails/public
ErrorLog /var/log/httpd/error_log
CustomLog /var/log/httpd/access_log combined env=!dontlog
</VirtualHost>
We have also tried to use AliasMatch after disabling UserDir like shown below but still is not working
AliasMatch ^/~([a-z]+)/(.*) /home/$1/public_html/$2
AliasMatch ^/~([a-z]+)$ /home/$1/public_html/
The community out there any assistance on this will be greatly appreciated.