Ask Your Question
0

How to enable caching for a particular URL with Apache module?

asked 2015-01-14 16:41:41 -0500

smsearcy gravatar image

Using PuppetLab's Apache module, how would I enable caching for a particular URL?

Neither apache::mod::cache nor apache::mod::disk_cache accept any parameters and based on puppetlabs-apache/templates/mod/disk_cache.conf.erb it appears that including apache::mod::disk_cache will enable caching for /.

So how would I enable caching for just a particular URL, e.g. /foo?

edit retag flag offensive close merge delete

Comments

I ended up just using jfryman-nginx, I couldn't get it working in Apache.

smsearcy gravatar imagesmsearcy ( 2015-02-12 12:35:58 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-16 03:15:53 -0500

kariboe gravatar image

A wild/quick guess but worth trying:

Create a vhost and add a directories parameter or add a custom_fragment

apache::vhost { 'sample.example.net':
  docroot     => '/path/to/directory',
  directories => [ { path => '/path/to/directory', handler => value } ],
}

More information here: https://forge.puppetlabs.com/puppetlabs/apache#parameter-directories-for-apachevhost

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-01-14 16:41:41 -0500

Seen: 93 times

Last updated: Jan 16 '15