Initial Configuration (Getting it working) _ _ _
INDEX BACK NEXT _ _ _

Directory structure
Squid normally creates a few directories. They are normally as follows: /usr/local/squid /bin /cache /etc /logs/ /src (we created this earlier) /bin contains the squid program itself, as well as programs like ftpget, which are used by squid to perform various functions.

The /cache/ directory is where the actual cache data is stored. You might think of putting this on a seperate partition to the rest of the cache, or even on a seperate disk. It contains directories along the lines of /00/ /01/ /02/ and /03/ which contain more directories, and eventually the actual data of the cache. Storing the data in multiple directories means that getting to files in large caches is still fast, since your operating system can take a long time to read a directory with 10 000 files in it.

/etc/ contains the squid.conf file, which is the only squid config file.

The /logs/ directory can also get large, especially if you have siblings, as they will query you with each connection, which could double the log size. Note that there is a file called /log/ in the cache directory, but you can't delete or remove it. It is an index to the /usr/local/squid/cache/ directories described above.

/src/ generally contains the source to the version of squid you are running.


The Squid Users guide is copyright Oskar Pearson oskar@is.co.za

If you like the layout (I do), I can only thank William Mee and hope he forgives me for stealing it