apache


Install Jenkins on Debian

First of all add the key of the Jenkins server to apt: wget -q -O – http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add – Then create the sources.list entry or better create a file in /etc/apt/sources.list.d/: echo "deb http://pkg.jenkins-ci.org/debian binary/" > /etc/apt/sources.list.d/jenkins.list Then install the package: apt-get update apt-get install jenkins Jenkins will by default run on port […]


Redirecting to https using .htaccess   Recently updated !

Based on HTTPS variable: RewriteCond %{HTTPS} !=on RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L] Redirect everything that's not being served on port 443 to https: RewriteCond %{SERVER_PORT} !^443$ RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L] Redirect everything served on port 80 to https: RewriteCond %{SERVER_PORT} ^80$ RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]