Re: caching dynamic pages
Javier Gostling <[email protected]>
| Newsgroups | gmane.network.tux |
|---|---|
| Message-ID | <1026225256.9822.3.camel@jgostling> |
On Tue, 2002-07-09 at 02:50, Herald van der Breggen wrote: > Hi, > > I have Tux running on a RH7.3 system. Tux listens on port 80 of an IP > alias on eth0. Clientport is 8080 and apache (with mod_perl) is > listening on it. Virtual hosting is switched on. > > This works fine. Pages that are not found in the documentroot of Tux are > sent to Apache and are handled correctly. > > So far so good. > > Since, in my case, a lot of dynamic pages are not very dynamic, I would > like to cache them for maybe 12 hours or so. The reason to try Tux was > the it should be able to cache dynamic pages. I have read > http-cache-control.html more than 100 times and tried a lot of > variations. I modified /etc/tux.mime.types, played with Cache-Control > headers (including max-age) etc, but did not succeed to serve a cached > dynamic page. > > The tux.README is also discussing caching of dynamic pages, but does not > tell how to achieve this. > > Can anyone explain me how to achieve caching of dynamic pages with Tux? Correct me if I'm wrong, but you want tux to work as a proxy in reverse mode? If that is so, I'm not sure tux can do that. An alternative would be the following: 1. Configure tux as the main web server to serve static content. 2. Configure squid as a reverse proxy and use it as the clientport. 3. Have squid forward requests to apache (on another port) and apache set the right cache control headers so squid can do the right caching. Not sure if it will work, but I don't see why not. There might be some issues as: 1. More services running might actually increase the load on your server. 2. Increased administrative overhead (more software to configure, upgrade, monitor, etc.) Cheers, -- Javier Gostling Ingeniero de Sistemas Virtualia S.A. [email protected] Fono: +56 (2) 202-6264 x 130 Fax: +56 (2) 342-8763 Av. Kennedy 5757, of 1502 Las Condes Santiago Chile