{"id":272,"date":"2006-07-03T00:55:58","date_gmt":"2006-07-03T00:55:58","guid":{"rendered":""},"modified":"2007-01-07T18:25:03","modified_gmt":"2007-01-08T02:25:03","slug":"fedora-caching-proxy","status":"publish","type":"post","link":"https:\/\/znark.com\/blog\/2006\/07\/fedora-caching-proxy\/","title":{"rendered":"Fedora Caching Proxy"},"content":{"rendered":"<p>I already have a mirror of [Fedora Core](http:\/\/download.fedora.redhat.com\/pub\/fedora\/linux\/core\/) current release and updates to make updates and installing packages faster.  I have been doing more development recently which means installing Extras and Rawhide package.  I wanted to have a mirror of those but didn&#8217;t want to have a complete mirror and do the large rsync updates every day.  Instead, I setup a reverse proxy with a large cache.<\/p>\n<p>Enable proxy module:<\/p>\n<p>    a2enmod proxy<\/p>\n<p>Edit \/etc\/apache2\/mods-enabled\/proxy.conf:<\/p>\n<p>        ProxyPass \/pub\/fedora\/extras http:\/\/download.fedora.redhat.com\/pub\/fedora\/linux\/extras<br \/>\n        ProxyPassReverse \/pub\/fedora\/extras http:\/\/download.fedora.redhat.com\/pub\/fedora\/linux\/\\extras<\/p>\n<p>        ProxyPass \/pub\/fedora\/development http:\/\/download.fedora.redhat.com\/pub\/fedora\/linux\/co\\re\/development<br \/>\n        ProxyPassReverse \/pub\/fedora\/development http:\/\/download.fedora.redhat.com\/pub\/fedora\/l\\inux\/core\/development<\/p>\n<p>        CacheEnable disk \/pub\/fedora\/extras<br \/>\n        CacheRoot \/var\/cache\/apache2\/proxy<br \/>\n        CacheSize 100000<br \/>\n        CacheMaxFileSize 1000000000<br \/>\n        CacheGcInterval 4<br \/>\n        CacheMaxExpire 24<br \/>\n        CacheLastModifiedFactor 0.1<br \/>\n        CacheDefaultExpire 1<\/p>\n<p>Restart Apache.<\/p>\n<p>    \/etc\/init.d\/apache2 restart<\/p>\n<p>Now, [http:\/\/kraken.dyndns.org\/pub\/fedora\/extras\/](http:\/\/kraken.dyndns.org\/pub\/fedora\/extras\/) is a proxy mirror.  It is limited to machines on my local network.  It isn&#8217;t perfect since the files are stored in the cache directory.   And it uses the master download site instead of a list of mirrors.  The ideal would be a cache that used the files in a normal directory hierarchy.  And could rotate between a list of mirrors.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I already have a mirror of [Fedora Core](http:\/\/download.fedora.redhat.com\/pub\/fedora\/linux\/core\/) current release and updates to make updates and installing packages faster. I have been doing more development recently which means installing Extras and Rawhide package. I wanted to have a mirror of those but didn&#8217;t want to have a complete mirror and do the large rsync updates [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[],"class_list":["post-272","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/posts\/272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/comments?post=272"}],"version-history":[{"count":0,"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/posts\/272\/revisions"}],"wp:attachment":[{"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/media?parent=272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/categories?post=272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/tags?post=272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}