diff options
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/distclean | 2 | ||||
| -rw-r--r-- | tools/p1.pl | 2 | ||||
| -rw-r--r-- | tools/squid.conf | 3 | ||||
| -rw-r--r-- | tools/subdomain1/index.php | 1 | ||||
| -rw-r--r-- | tools/subdomain1/subdomain1.conf | 22 |
5 files changed, 28 insertions, 2 deletions
diff --git a/tools/distclean b/tools/distclean index 961cc801..1ddc7532 100755 --- a/tools/distclean +++ b/tools/distclean | |||
| @@ -37,7 +37,7 @@ find . -type f -name Makefile.in -print| xargs rm -f | |||
| 37 | rm -f aclocal.m4 compile config.guess config.h.in config.sub configure depcomp | 37 | rm -f aclocal.m4 compile config.guess config.h.in config.sub configure depcomp |
| 38 | rm -f m4/Makefile.am | 38 | rm -f m4/Makefile.am |
| 39 | 39 | ||
| 40 | echo "$0: Removing miscelanious files..." | 40 | echo "$0: Removing miscellaneous files..." |
| 41 | rm -f po/*.gmo po/stamp-po | 41 | rm -f po/*.gmo po/stamp-po |
| 42 | rm -f lib/tests/*.Po | 42 | rm -f lib/tests/*.Po |
| 43 | rm -f doc/developer-guidelines.html | 43 | rm -f doc/developer-guidelines.html |
diff --git a/tools/p1.pl b/tools/p1.pl index 9cbe6dc0..ea80c334 100644 --- a/tools/p1.pl +++ b/tools/p1.pl | |||
| @@ -30,7 +30,7 @@ use IO::File; | |||
| 30 | 30 | ||
| 31 | sub TIEHANDLE { | 31 | sub TIEHANDLE { |
| 32 | my ($class, $fn) = @_; | 32 | my ($class, $fn) = @_; |
| 33 | my $handle = new IO::File "> $fn" or die "Cannot open embedded work filei $!\n"; | 33 | my $handle = new IO::File "> $fn" or die "Cannot open embedded work file $!\n"; |
| 34 | bless { FH => $handle, Value => 0}, $class; | 34 | bless { FH => $handle, Value => 0}, $class; |
| 35 | } | 35 | } |
| 36 | 36 | ||
diff --git a/tools/squid.conf b/tools/squid.conf index bed7a583..048aa576 100644 --- a/tools/squid.conf +++ b/tools/squid.conf | |||
| @@ -972,6 +972,8 @@ | |||
| 972 | # Example rule allowing access from your local networks. | 972 | # Example rule allowing access from your local networks. |
| 973 | # Adapt to list your (internal) IP networks from where browsing | 973 | # Adapt to list your (internal) IP networks from where browsing |
| 974 | # should be allowed | 974 | # should be allowed |
| 975 | acl localhost src 127.0.0.1/32 | ||
| 976 | acl localhost src ::1/128 | ||
| 975 | acl localnet src 10.0.0.0/8 # RFC1918 possible internal network | 977 | acl localnet src 10.0.0.0/8 # RFC1918 possible internal network |
| 976 | acl localnet src 172.16.0.0/12 # RFC1918 possible internal network | 978 | acl localnet src 172.16.0.0/12 # RFC1918 possible internal network |
| 977 | acl localnet src 192.168.0.0/16 # RFC1918 possible internal network | 979 | acl localnet src 192.168.0.0/16 # RFC1918 possible internal network |
| @@ -1172,6 +1174,7 @@ http_access deny !Safe_ports | |||
| 1172 | http_access deny CONNECT !SSL_ports | 1174 | http_access deny CONNECT !SSL_ports |
| 1173 | 1175 | ||
| 1174 | # Only allow cachemgr access from localhost | 1176 | # Only allow cachemgr access from localhost |
| 1177 | http_access allow localhost | ||
| 1175 | http_access allow localhost manager | 1178 | http_access allow localhost manager |
| 1176 | http_access deny manager | 1179 | http_access deny manager |
| 1177 | 1180 | ||
diff --git a/tools/subdomain1/index.php b/tools/subdomain1/index.php new file mode 100644 index 00000000..e97b19f5 --- /dev/null +++ b/tools/subdomain1/index.php | |||
| @@ -0,0 +1 @@ | |||
| Subdomain: subdomain1.localhost.com | |||
diff --git a/tools/subdomain1/subdomain1.conf b/tools/subdomain1/subdomain1.conf new file mode 100644 index 00000000..74521792 --- /dev/null +++ b/tools/subdomain1/subdomain1.conf | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # This apache configuration file is used testing | ||
| 2 | # check_curl tests use this subdomain to see if --noproxy works on subdomains of a domain. | ||
| 3 | |||
| 4 | <VirtualHost *:80> | ||
| 5 | ServerName subdomain1.localhost.com | ||
| 6 | DocumentRoot /var/www/subdomain1 | ||
| 7 | |||
| 8 | ErrorLog ${APACHE_LOG_DIR}/subdomain1_error.log | ||
| 9 | CustomLog ${APACHE_LOG_DIR}/subdomain1_access.log combined | ||
| 10 | </VirtualHost> | ||
| 11 | |||
| 12 | <VirtualHost *:443> | ||
| 13 | ServerName subdomain1.localhost.com | ||
| 14 | DocumentRoot /var/www/subdomain1 | ||
| 15 | |||
| 16 | SSLEngine on | ||
| 17 | SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem | ||
| 18 | SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key | ||
| 19 | |||
| 20 | ErrorLog ${APACHE_LOG_DIR}/subdomain1_ssl_error.log | ||
| 21 | CustomLog ${APACHE_LOG_DIR}/subdomain1_ssl_access.log combined | ||
| 22 | </VirtualHost> | ||
