logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: ExpiresActive: is this config correct?
Author
hydn79



Joined: 28 Apr 2007
Posts: 19

PostPosted: Sat 03 Jan '09 2:52    Post subject: ExpiresActive: is this config correct? Reply with quote

ExpiresActive: is this config correct? Thanks

Code:
<Directory />
    Options -FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
ExpiresActive On
ExpiresDefault A300
ExpiresByType image/x-icon A2592000
ExpiresByType application/x-javascript A2592000
ExpiresByType text/css A2592000
ExpiresByType image/gif A604800
ExpiresByType image/png A604800
ExpiresByType image/jpeg A604800
ExpiresByType text/plain A604800
ExpiresByType application/x-shockwave-flash A604800
ExpiresByType video/x-flv A604800
ExpiresByType application/pdf A604800
ExpiresByType text/html A300
</Directory>

<Directory "D:/www/htdocs">
    Options Indexes -FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
ExpiresActive On
ExpiresDefault A300
ExpiresByType image/x-icon A2592000
ExpiresByType application/x-javascript A2592000
ExpiresByType text/css A2592000
ExpiresByType image/gif A604800
ExpiresByType image/png A604800
ExpiresByType image/jpeg A604800
ExpiresByType text/plain A604800
ExpiresByType application/x-shockwave-flash A604800
ExpiresByType video/x-flv A604800
ExpiresByType application/pdf A604800
ExpiresByType text/html A300
</Directory>
Back to top
hydn79



Joined: 28 Apr 2007
Posts: 19

PostPosted: Sat 03 Jan '09 21:27    Post subject: Reply with quote

Sorry did I post in the wrong forum? Mods please move if so.
Back to top
hydn79



Joined: 28 Apr 2007
Posts: 19

PostPosted: Mon 05 Jan '09 3:33    Post subject: Reply with quote

will try another forum. Thanks anyways. Happy new years! Smile
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7309
Location: Germany, Next to Hamburg

PostPosted: Mon 05 Jan '09 16:41    Post subject: Reply with quote

Hi Hydn79,
from the syntax it is correct. But IMHO it is not correct to put the ExpiresByType also in to <Directory />
Back to top


Reply to topic   Topic: ExpiresActive: is this config correct? View previous topic :: View next topic
Post new topic   Forum Index -> Apache