summaryrefslogtreecommitdiff
path: root/etc/httpd/sites
diff options
context:
space:
mode:
Diffstat (limited to 'etc/httpd/sites')
-rw-r--r--etc/httpd/sites/10.1.8.63.conf5
-rw-r--r--etc/httpd/sites/mirror.conf65
-rw-r--r--etc/httpd/sites/mntscripts.conf24
3 files changed, 94 insertions, 0 deletions
diff --git a/etc/httpd/sites/10.1.8.63.conf b/etc/httpd/sites/10.1.8.63.conf
new file mode 100644
index 0000000..7afda1b
--- /dev/null
+++ b/etc/httpd/sites/10.1.8.63.conf
@@ -0,0 +1,5 @@
+# File: /etc/httpd/sites/{ipaddress}.conf
+# Package: mirror
+# Purpose: A template for the mirror apache listeners. This is probably redundant, but in case it's needed, fix the IP address here and in the filename.
+Listen 10.1.8.63:80
+Listen 10.1.8.63:443
diff --git a/etc/httpd/sites/mirror.conf b/etc/httpd/sites/mirror.conf
new file mode 100644
index 0000000..5f2e761
--- /dev/null
+++ b/etc/httpd/sites/mirror.conf
@@ -0,0 +1,65 @@
+# File: /etc/httpd/sites/mirror.conf
+# Package: mirror
+# Title: Apache mirror config
+# Purpose: To provide a standard mirror http and https site
+# Reference:
+# Instructions:
+# you can make a simple IP listener conf with the following
+# thisip=$( ifconfig 2>/dev/null | awk '/Bcast|broadcast/{print $2}' | tr -cd '[^0-9\.\n]' | head -n1)
+# printf "Listen %s\nListen %s" "${thisip}:80" "${thisip}:443" > /etc/httpd/sites/${thisip}.conf
+# Be sure to fix the IP addresses here for the virtual hosts.
+# Also ensure /etc/hosts has the right hostnames configured for the ssl vhost below
+# Document: Below this line
+
+<VirtualHost 10.1.8.63:80>
+
+ ServerName mirror.example.com:80
+ ServerAlias mirror brass mirror-brass mirrorbrass brassmirror *.mirror.example.com brass.example.com
+ # this server also provides bgscripts.repo at http://mirror.example.com/bgscripts which is /var/www/html/mirror.example.com/bgscripts
+
+ DocumentRoot "/var/www/html/mirror.example.com"
+
+ Alias /mirror /mnt/mirror
+
+ # Index options
+ Options +Indexes
+ IndexOptions IgnoreCase FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=* SuppressHTMLPreamble
+ IndexIgnore FOOTER.html repodata tivoli *.so bgscripts
+ ReadmeName FOOTER.html
+
+ # Useful additions for the mirror
+ AddIcon /icons/rpm.png .rpm
+ AddIcon /icons/repo.png .repo
+ AddType application/octet-stream .iso
+
+ <Directory "/var/www/html/mirror.example.com">
+ AllowOverride None
+ Order allow,deny
+ Allow from all
+ Options Indexes FollowSymLinks
+ </Directory>
+
+ # Allows "centos.mirror.example.com" redirection to "mirror.example.com/centos" behavior
+ RewriteEngine On
+ RewriteCond %{HTTP_HOST} ^([^.]*)\.mirror\.example\.com$
+ RewriteRule /(.*) http://mirror.example.com/%1/$1 [R,L]
+
+</VirtualHost>
+
+<VirtualHost 10.1.8.63:443>
+ SSLEngine on
+ SSLProtocol all -SSLv2 -SSLv3
+ SSLHonorCipherOrder on
+ SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA !RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS"
+ SSLCertificateFile /etc/pki/tls/certs/wildcard.crt
+ SSLCertificateKeyFile /etc/pki/tls/private/wildcard.key
+ SSLCACertificateFile /etc/pki/tls/certs/rapidssl.crt
+
+ LogLevel warn
+ # Reverse proxy all ssl traffic to the nonencrypted site. This is a template for any and all sites.
+ # Observe that this depends on /etc/hosts or DNS to look up the variable SERVER_NAME
+ SSLProxyEngine On
+ RewriteEngine On
+ RewriteRule ^/(.*)$ http://%{SERVER_NAME}/$1 [P,L]
+
+</VirtualHost>
diff --git a/etc/httpd/sites/mntscripts.conf b/etc/httpd/sites/mntscripts.conf
new file mode 100644
index 0000000..31cdc6b
--- /dev/null
+++ b/etc/httpd/sites/mntscripts.conf
@@ -0,0 +1,24 @@
+<VirtualHost 10.1.8.63:80>
+
+ ServerName mntscripts.example.com:80
+ ServerAlias mntscripts scripts scripts.example.com
+
+ DocumentRoot "/var/www/html/mntscripts.example.com"
+
+ AddType application/octet-stream .iso
+
+ #Alias /mirror /mnt/mirror
+
+ Options +Indexes
+ IndexOptions FancyIndexing NameWidth=* DescriptionWidth=*
+ IndexIgnore FOOTER.html repodata
+ ReadmeName FOOTER.html
+
+ <Directory "/var/www/html/mntscripts.example.com">
+ AllowOverride None
+ Order allow,deny
+ Allow from all
+ Options Indexes FollowSymLinks
+ </Directory>
+
+</VirtualHost>
bgstack15