This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
networking:linux:qlproxy [2011/12/24 15:12] gcooper |
networking:linux:qlproxy [2011/12/24 15:38] (current) gcooper |
||
---|---|---|---|
Line 15: | Line 15: | ||
http:// | http:// | ||
- | ==== Install | + | ==== Install |
- | < | + | [[computing: |
- | yum install wget system-config-firewall-tui squid httpd php | + | |
- | </ | + | |
- | < | + | This may work on either 32-bit or 64-bit systems. |
- | vi / | + | |
- | http_access allow localnet | + | ==== Install Requirements ==== |
- | acl localnet src 192.168.0.0/ | + | |
- | visible_hostname | + | |
- | </ | + | |
< | < | ||
+ | yum install wget system-config-firewall-tui squid httpd php | ||
+ | |||
chkconfig squid on | chkconfig squid on | ||
- | service squid start | ||
chkconfig httpd on | chkconfig httpd on | ||
- | service httpd start | ||
</ | </ | ||
Line 52: | Line 46: | ||
</ | </ | ||
+ | ==== Selinux ==== | ||
+ | |||
+ | Set to permissive for now: | ||
+ | |||
+ | < | ||
+ | vi / | ||
+ | </ | ||
+ | |||
+ | ==== Configure Squid ==== | ||
+ | |||
+ | < | ||
+ | vi / | ||
+ | |||
+ | http_access allow localnet | ||
+ | acl localnet src 192.168.0.0/ | ||
+ | |||
+ | visible_hostname | ||
+ | |||
+ | icap_enable on | ||
+ | icap_preview_enable on | ||
+ | icap_preview_size 4096 | ||
+ | icap_persistent_connections on | ||
+ | icap_send_client_ip on | ||
+ | icap_send_client_username on | ||
+ | icap_service qlproxy1 reqmod_precache bypass=0 icap:// | ||
+ | icap_service qlproxy2 respmod_precache bypass=0 icap:// | ||
+ | adaptation_access qlproxy1 allow all | ||
+ | adaptation_access qlproxy2 allow all | ||
+ | </ | ||
+ | |||
+ | ==== Configure Web Server ==== | ||
+ | |||
+ | < | ||
+ | cat << EOF >> / | ||
+ | |||
+ | # | ||
+ | # This is / | ||
+ | # | ||
+ | |||
+ | Alias /qlproxy / | ||
+ | < | ||
+ | Options FollowSymLinks | ||
+ | AllowOverride None | ||
+ | </ | ||
+ | |||
+ | EOF | ||
+ | </ | ||
+ | |||
+ | **Now reboot!** |