]> bicyclesonthemoon.info Git - yplom/proxy/blob - config.1.txt
Support for 206 Partial content.
[yplom/proxy] / config.1.txt
1 # config.txt is generated from config.1.txt
2 # 13.01.2016
3 #
4 # The file with the autogenerated configurations for Apache2 and crontab
5
6 #    Copyright (C) 2015-2016  Balthasar SzczepaƄski
7 #
8 #    This program is free software: you can redistribute it and/or modify
9 #    it under the terms of the GNU Affero General Public License as
10 #    published by the Free Software Foundation, either version 3 of the
11 #    License, or (at your option) any later version.
12 #
13 #    This program is distributed in the hope that it will be useful,
14 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 #    GNU Affero General Public License for more details.
17 #
18 #    You should have received a copy of the GNU Affero General Public License
19 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
20 #
21 # ! the license is for config.1.txt, not config.txt.
22
23 ################################################################################
24 #copy this to your Apache2 configuration,
25 #remember to make the server listen on these ports:
26 ###LISTEN_HTTP;
27 ###LISTEN_HTTPS;
28
29 ###VIRTUAL_HOST_HTTP;
30 ###SERVER_ADMIN;
31 ###SERVER_NAME_HTTP;
32 ###DOCUMENT_ROOT;
33 ###CGI_ALIAS;
34         
35         ErrorLog ${APACHE_LOG_DIR}/err-proxy.log
36         LogLevel warn
37         CustomLog ${APACHE_LOG_DIR}/proxy.log combined
38 </VirtualHost>
39
40 <IfModule mod_ssl.c>
41 ###VIRTUAL_HOST_HTTPS;
42 ###SERVER_ADMIN;
43 ###SERVER_NAME_HTTPS;
44 ###DOCUMENT_ROOT;
45 ###CGI_ALIAS;
46         
47         SSLEngine on
48 ###SSL_CERT;
49 ###SSL_KEY;
50         
51         #SSLOptions +StdEnvVars
52         
53         ErrorLog ${APACHE_LOG_DIR}/err-proxyssl.log
54         LogLevel warn
55         CustomLog ${APACHE_LOG_DIR}/proxyssl.log combined
56 </VirtualHost>
57 </IfModule>
58
59 ################################################################################
60 #copy this to your Squid configuration.
61
62 ###HTTP_PORT_SSL;
63
64 acl allowed_ports port 80
65 acl allowed_ports port 443
66
67 ###EXTERNAL_ACL;
68
69 acl CONNECT method CONNECT
70 acl unlocked external unlocked-check
71 ###UNLOCK_DOMAIN_ACL;
72
73 http_access deny !allowed_ports
74 http_access allow unlockdomain
75 http_access deny !unlocked
76 http_access allow CONNECT
77 http_access deny all
78
79 coredump_dir /var/spool/squid
80
81 ###EXTERNAL_REWRITE;
82
83 ################################################################################
84 #Copy this to your crontab:
85 ###RM_ACCESS_CRONTAB;
86 ###CLEARARCH_CRONTAB;
87 ###OLDLOGS_CRONTAB;