johnnyk Posted January 28, 2007 Share Posted January 28, 2007 I'm trying to set the expiration for an mp3 file. I put the following in the .htaccess of the root, but got a 500.[code]ExpiresActive OnExpiresDefault M432000[/code]What's the deal? Link to comment https://forums.phpfreaks.com/topic/36011-expiresdefault/ Share on other sites More sharing options...
steviewdr Posted January 28, 2007 Share Posted January 28, 2007 Did you enable the associated mod_expire module for apache?-steve Link to comment https://forums.phpfreaks.com/topic/36011-expiresdefault/#findComment-171095 Share on other sites More sharing options...
johnnyk Posted January 28, 2007 Author Share Posted January 28, 2007 How would I do that? Link to comment https://forums.phpfreaks.com/topic/36011-expiresdefault/#findComment-171477 Share on other sites More sharing options...
johnnyk Posted February 3, 2007 Author Share Posted February 3, 2007 I'm not sure I understand. Doesn't "ExpiresActive On" enable it? Link to comment https://forums.phpfreaks.com/topic/36011-expiresdefault/#findComment-175945 Share on other sites More sharing options...
Stray_Bullet Posted February 3, 2007 Share Posted February 3, 2007 You have to activate the module in your httpd.cfgLook for this line & uncomment it...[code]# LoadModule expires_module modules/mod_expires.so[/code]Then restart apache...Hope this helps! 8) Link to comment https://forums.phpfreaks.com/topic/36011-expiresdefault/#findComment-176259 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.