Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have just installed apache and I am intending to run it as a forwarding proxy, to speed up the internet connection by caching common queries.
So far it works great, and after doing some speed tests to see if it works, i was impressed: the first time i tried to access a page, the speed was just as normal. When i accessed the same page on another computer later, it appeared within a few milliseconds. (http://performance.toast.net, text test)
The results for the JPG was not so great. It did not improve at all, even thought the JPG was long within the limits of the cache size. I believe that it should have been cached. It didn't, and I have not yet been able to find out why.
Here is my proxy configuration
Code:
<Proxy *>
Order deny,allow
Deny from all
Allow from 192.168.1.0/255.255.255.0
</Proxy>
CacheEnable disk *
CacheEnable mem *.htm*
LoadModule cache_module modules/mod_cache.so
<IfModule mod_cache.c>
LoadModule disk_cache_module modules/mod_disk_cache.so
<IfModule mod_disk_cache.c>
CacheRoot /cacheroot
CacheDirLevels 6
CacheDirLength 3
CacheMinFileSize 1
CacheMaxFileSize 10000000
</IfModule>
LoadModule mem_cache_module modules/mod_mem_cache.so
<IfModule mod_mem_cache.c>
MCacheSize 65536
MCacheMaxObjectCount 1048576
MCacheMinObjectSize 1
MCacheMaxObjectSize 2097152
</IfModule>
# When acting as a proxy, don't cache the list of security updates
# CacheDisable http://security.update.server/update-list/
</IfModule>
I used the example on apache's website, and changed it slightly, the way i thought it would fit my needs. It seems to work, but it doesn't like pictures or other downloads.
Can you please tell me how i can get apache to cache graphics and other files?
I have just installed apache and I am intending to run it as a forwarding proxy, to speed up the internet connection by caching common queries.
Unfortunately I do not know the answer to your Apache question. I just wanted to point out "Squid" to you. Squid is a caching proxy, designed to do exactly what you are describing. Apache is a webserver, with some caching abilities. Squid may be better suited to the job - you might want to check it out and compare its capabilities to Apache.
Actionally, I do have Squid installed and running. I just want to compare the performance of the two, before i decide on which server to use in the long run.
By the way: I did not get Squid to chache images and other downloads either. If you could tell me how to do that i would be very thankful too.
I did not get Squid to chache images and other downloads either. If you could tell me how to do that i would be very thankful too.
I have just recently installed Squid on my home computer. So I still don't know much about it. I have it specifically set to NOT cache anything, ever. I want Squid not for the caching, but for the ACL control of who gets to go where. I'm using SquidGuard as a Squid redirector to accomplish this. I'm still in the experimental phase. I wish I could help you more, but I'm just learning it myself!
Yeah, me too. I am still in the learning phase. I came from windows originally, and i still have some linux leaning to do. I still don't know everything in linux as i do with windows. I know it is partially sad, but i think that i am moving toward the right direction. ;-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.