Discussion:
ContentDigest not working
(too old to reply)
a***@gmail.com
2015-05-14 11:35:01 UTC
Permalink
Apache 2.4.10 running on Debian Jessie.
I want to enable ContentDigest for one folder on a virtualhost.

Contents of the virtual host file is:

<VirtualHost *:80>
ServerName des.blah.com
ServerAlias des.blah.co.uk
DocumentRoot /var/www/des/

<Directory />
Options -Indexes +FollowSymLinks
AllowOverride None
</Directory>

<Directory "/var/www/des/fix/">
Options -Indexes
AllowOverride All
Order Allow,Deny
Allow from All
ContentDigest On
</Directory>

ErrorLog /var/log/apache2/des.error.log
CustomLog /var/log/apache2/des.access.log combined
</VirtualHost>

The virtualhost workw I can access the files stored in /var/www/des/fix/ using the URL http://des.blah.com/fix/blah_file.blah. But if I request the HEADER it doesn't contain the Content-MD5 field.

The virtualhost has been enabled using
a2ensite des.blah.com.conf

and apache has been restarted.

I have also attempted to using a .htaccess file with just "ContentDigest On" inside it within the /var/www/des/fix/ directory but this didn't work either.

I have also set "ContentDigest On" within the apache2.conf and following a restart of apache it didn't work either/

Any ideas?
yamo'
2015-05-22 17:08:04 UTC
Permalink
Hi,
Post by a***@gmail.com
The virtualhost has been enabled using
a2ensite des.blah.com.conf
On debian Jessie the file must be *.conf but to activate it, you had to
type :

a2ensite des.blah.com
--
Stéphane
Loading...