Hi!
I'm trying to setup a reverse proxy system with my server I have enabled the squid module in webmin configuration, created the cache directory and started the daemon
Basically, I'd like to have squid listening on port 80; apache listening on port 81 and receive the cache "misses" from squid
I have already configured httpd.conf with "Listen 80" and this is my squid.conf
http_port 80 accel defaultsite=mydomain.net vhost forwarded_for on
refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern . 0 20% 4320
cache_peer 127.0.0.1 parent 81 0 no-query no-digest originserver name=apache login=PASS
acl sites_apache dstdomain www.mydomain.net mydomain.net
acl our_sites dstdomain www.mydomain.net mydomain.net
cache_peer_access apache allow sites_apache
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl CONNECT method CONNECT
http_access allow our_sites
http_access allow manager all
http_access allow manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
access_log /var/log/squid/access.log
cache_mgr someone@somewhere.com
(the configuration I got from a tutorial and it seems to be working well for serving the default document_root)
I can serve the document_root with squid but not the other non-default websites that I'm hosting on this server (using virtualmin's standard virtual hosts)
Any idea about how I could do that?
Thanks in advance for your help :)