git - SSL Seafile and SSL Gitlab Apache Forwarding Problems -


i´ve set apache files 2 ssl services(seafile , gitlab subdomain). both defined via dnsmasq , point on own server ip. i´ve 2 config files in /etc/apache2/sites-available(one gitlab , 1 seafile). each service runs themselves . if enable other config, there occurs 404 error.the apache redirects me https://seafile.mlnet.de http://seafile.mlnet.de/users/sign_in (<-- /users/sign_in default gitlab login page).i don´t know cause of forwarding port 80. if enable only seafile, can access login page(domain.de/accounts/login/?next=/) via gitlab subdomain.

i grateful assistance.

here apache config files:

git_ssl.conf

<virtualhost *:443> sslengine on sslciphersuite sslv3:tlsv1:+high:!sslv2:!md5:!medium:!low:!exp:!adh:!enull:!anull sslcertificatefile /etc/ssl/certs/apache.crt sslcertificatekeyfile /etc/ssl/private/apache.key   servername gitlab.mlnet.de/ documentroot /opt/gitlab/embedded/service/gitlab-rails/public serversignature off  proxypreservehost on  allowencodedslashes nodecode  <location /> order deny,allow allow  proxypassreverse http://127.0.0.1:7777 proxypassreverse http://gitlab.mlnet.de/ </location>  rewriteengine on rewritecond %{document_root}/%{request_filename} !-f rewriterule .* http://127.0.0.1:7777%{request_uri} [p,qsa]  </virtualhost> 

seafile_ssl.conf

<virtualhost *:443>             serveradmin webmaster@localhost             servername seafile.mlnet.de/             documentroot /var/www/html             alias /media /home/seafile/haiwen/seafile-server-latest/seahub/media              errorlog ${apache_log_dir}/error.log             customlog ${apache_log_dir}/access.log combined               sslengine on               sslcertificatefile      /etc/ssl/certs/ssl-cert-snakeoil.pem             sslcertificatekeyfile /etc/ssl/private/ssl-cert-snakeoil.key               <filesmatch "\.(cgi|shtml|phtml|php)$">                             ssloptions +stdenvvars             </filesmatch>             <directory /usr/lib/cgi-bin>                             ssloptions +stdenvvars             </directory>               browsermatch "msie [2-6]" \                             nokeepalive ssl-unclean-shutdown \                             downgrade-1.0 force-response-1.0              browsermatch "msie [17-9]" ssl-unclean-shutdown   rewriteengine on    proxypass /seafhttp http://127.0.0.1:8082   proxypassreverse /seafhttp http://127.0.0.1:8082    rewriterule ^/seafhttp - [qsa,l]     rewriterule ^/(media.*)$ /$1 [qsa,l,pt]   rewritecond %{request_filename} !-f   rewriterule ^(.*)$ /seahub.fcgi/$1 [qsa,l,e=http_authorization:%{http:authorization}]  </virtualhost> 


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -