summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-04-06 20:56:08 +0200
committerHolger Levsen <holger@layer-acht.org>2014-04-06 20:56:08 +0200
commit369c7aa3efe37a9de643b8f75d1cb6a2d09bb744 (patch)
treee10d5cf546d89c1e386d7a81886c922e06d4fe37 /etc
parent48a2ac644e780a643952da08c3ce0ea768965f76 (diff)
downloadjenkins.debian.net-369c7aa3efe37a9de643b8f75d1cb6a2d09bb744.tar.xz
run apache on port 80 for jenkins job builder...
Diffstat (limited to 'etc')
-rw-r--r--etc/apache2/sites-available/jenkins.debian.net42
1 files changed, 41 insertions, 1 deletions
diff --git a/etc/apache2/sites-available/jenkins.debian.net b/etc/apache2/sites-available/jenkins.debian.net
index 4b8aa586..8b61661d 100644
--- a/etc/apache2/sites-available/jenkins.debian.net
+++ b/etc/apache2/sites-available/jenkins.debian.net
@@ -1,9 +1,49 @@
NameVirtualHost *:80
<VirtualHost *:80>
- ServerName jenkins.debian.net
RewriteEngine On
RewriteCond %{HTTPS} !=on
+ RewriteCond %{REMOTE_ADDR} !127.0.0.1
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
+
+ ServerName jenkins.debian.net
+ ServerAdmin holger@layer-acht.org
+
+ DocumentRoot /var/www
+ <Directory />
+ Options FollowSymLinks
+ AllowOverride None
+ </Directory>
+ <Directory /var/www/>
+ Options Indexes FollowSymLinks MultiViews
+ AllowOverride None
+ Order allow,deny
+ allow from all
+ </Directory>
+
+ ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
+ <Directory "/usr/lib/cgi-bin">
+ AllowOverride None
+ Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
+ Order allow,deny
+ Allow from all
+ SSLOptions +StdEnvVars
+ </Directory>
+
+ ProxyRequests Off
+ <Proxy *>
+ Order deny,allow
+ Allow from all
+ </Proxy>
+ ProxyPreserveHost on
+ ProxyPass / http://localhost:8080/
+
+ ErrorLog ${APACHE_LOG_DIR}/error.log
+
+ # Possible values include: debug, info, notice, warn, error, crit,
+ # alert, emerg.
+ LogLevel warn
+
+ CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
NameVirtualHost *:443