LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to setting mod_cache for VirtualHost (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-setting-mod_cache-for-virtualhost-4175539821/)

adumith 04-15-2015 02:50 PM

How to setting mod_cache for VirtualHost
 
Hello everyone;

I have the configuration:

#<IfModule mod_disk_cache.c>
# CacheEnable disk http://mydomain/uploads/
# CacheRoot /home/www/mydomain/cache
# CacheDefaultExpire 1200
# CacheDirLevels 5
# CacheDirLength 3
#</IfModule>

This work smoothly, but at this time I have to set this module for two virtualHost.

Any body know how can I do it?

Thanks in advance.

Best regards;

P.D: I´m using CentOs 6.6

bishopolis 04-15-2015 08:20 PM

Quote:

Originally Posted by adumith (Post 5347968)
Any body know how can I do it?

Yes. The documentation says you can put that into a VirtualHost stanza.

/manual/mod/mod_cache.html#cacheenable

Good luck.

adumith 04-16-2015 02:31 PM

Quote:

Originally Posted by bishopolis (Post 5348090)
Yes. The documentation says you can put that into a VirtualHost stanza.

/manual/mod/mod_cache.html#cacheenable

Good luck.

Thanks for your reply, but could you provide me the complete URL or some example..

Thanks again.....


All times are GMT -5. The time now is 06:48 AM.