Skip to content

Instantly share code, notes, and snippets.

@phoexer
Created February 16, 2020 20:09
Show Gist options
  • Save phoexer/6fcbc8baff19c19521eaa6c55ce033a1 to your computer and use it in GitHub Desktop.
Save phoexer/6fcbc8baff19c19521eaa6c55ce033a1 to your computer and use it in GitHub Desktop.
Sample Jenkins file
<VirtualHost *:80>
ServerAdmin admin@example.com
ServerName jenkins.example.com
ErrorLog /var/www/jenkins.example.com/log/error.log
CustomLog /var/www/jenkins.example.com/log/access.log combined
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel error
RewriteEngine on
RewriteCond %{SERVER_NAME} =jenkins.example.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment