Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: ExpiresActive: is this config correct? |
|
Author |
|
hydn79
Joined: 28 Apr 2007 Posts: 19
|
Posted: Sat 03 Jan '09 2:52 Post subject: ExpiresActive: is this config correct? |
|
|
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
|
Posted: Sat 03 Jan '09 21:27 Post subject: |
|
|
Sorry did I post in the wrong forum? Mods please move if so. |
|
Back to top |
|
hydn79
Joined: 28 Apr 2007 Posts: 19
|
Posted: Mon 05 Jan '09 3:33 Post subject: |
|
|
will try another forum. Thanks anyways. Happy new years! |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 05 Jan '09 16:41 Post subject: |
|
|
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 |
|
|
|
|
|
|