diff options
author | B Stack <bgstack15@gmail.com> | 2017-02-06 11:18:31 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2017-02-06 11:18:31 -0500 |
commit | 1cd63794081c51ae9a0cc95dc49d9cfa19039e45 (patch) | |
tree | 268f61b3a571935e4230d862e6ef0c646dda712f /etc/httpd | |
parent | actually updated scripts that call framework (diff) | |
download | mirror-1cd63794081c51ae9a0cc95dc49d9cfa19039e45.tar.gz mirror-1cd63794081c51ae9a0cc95dc49d9cfa19039e45.tar.bz2 mirror-1cd63794081c51ae9a0cc95dc49d9cfa19039e45.zip |
rearranged directories to be FHS 3.0 compliant
Diffstat (limited to 'etc/httpd')
-rw-r--r-- | etc/httpd/conf.d/local_mirror.conf | 31 | ||||
-rw-r--r-- | etc/httpd/sites/zz_proxy.conf | 41 |
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> |