summaryrefslogtreecommitdiff
path: root/etc/httpd
diff options
context:
space:
mode:
Diffstat (limited to 'etc/httpd')
-rw-r--r--etc/httpd/conf.d/local_mirror.conf31
-rw-r--r--etc/httpd/sites/zz_proxy.conf41
2 files changed, 72 insertions, 0 deletions
diff --git a/etc/httpd/conf.d/local_mirror.conf b/etc/httpd/conf.d/local_mirror.conf
new file mode 100644
index 0000000..447c57a
--- /dev/null
+++ b/etc/httpd/conf.d/local_mirror.conf
@@ -0,0 +1,31 @@
+# File: /etc/httpd/conf.d/local_mirror.conf
+# Title: Local Config Additions for Mirror
+
+DirectoryIndex index.html index.htm index.php index.html.var
+ServerSignature Off
+ServerAdmin linuxadmin@example.com
+LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combinedvhost
+
+# Stop the "could not reliably determine the server fqdn" error
+ServerName junk.example.com:80
+
+# Ignore these files
+SetEnvIf Request_URI "ignoredfile.html" dontlog
+
+CustomLog logs/access_log combinedvhost env=!dontlog
+
+# Deflate output configuration
+AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
+BrowserMatch ^Mozilla/4 gzip-only-text/html
+BrowserMatch ^Mozilla/4\.0[678] no-gzip
+BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
+
+# Default in case a name is used for https that we are not providing on https
+DocumentRoot "/var/www/html/notfound/"
+
+# Turn off HTTP TRACE
+TraceEnable off
+
+<FilesMatch "\.acl$">
+ Deny from All
+</FilesMatch>
diff --git a/etc/httpd/sites/zz_proxy.conf b/etc/httpd/sites/zz_proxy.conf
new file mode 100644
index 0000000..c6221de
--- /dev/null
+++ b/etc/httpd/sites/zz_proxy.conf
@@ -0,0 +1,41 @@
+# File: /etc/httpd/sites/zz_proxy.conf
+<Proxy *>
+ Order deny,allow
+ Deny from all
+ # Allow each host or range as desired.
+
+ Allow from 203.0.193.232/255.255.255.255
+ Allow from 10.1.9.194/32
+ # Whole Linux dev subnet
+ Allow from 10.1.9.0/24
+ # Whole IT-192 network in vmware so I do not have to keep doing this
+ Allow from 203.0.192.0/23
+ # onyx for webtatic
+ Allow from 10.1.9.121/32
+ # company-owned wireless devices subnets
+ Allow from 10.48.0.0/16
+ # personally-owned wireless devices
+ Allow from 10.21.0.0/16
+
+</Proxy>
+
+Listen 10.1.8.63:8090
+<VirtualHost 10.1.8.63:8080>
+
+ ServerName junk.example.com:8080
+ ServerAlias *
+
+ DocumentRoot /var/www/html/notfound
+
+ RewriteEngine On
+ ProxyRequests On
+ RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI}
+ ProxyPass / http://%{HTTP_HOST}%{REQUEST_URI}
+
+ # if this apache server is behind a proxy:
+ #ProxyRemote * http://proxy.example.com:8080/
+
+ CustomLog "logs/proxy_log" combinedvhost env=!dontlog
+ ErrorLog "logs/proxy_error_log"
+
+</VirtualHost>
bgstack15