Windows 10 64bit. I put Apache Lounge (2.4.23 Win64) in C: / server / apache
htdocs rendered C: / server / htdocs.
Configured httpd.conf
LoadModule rewrite_module modules / mod_rewrite.so uncommented.
Access settings indicated:

<Directory /> AllowOverride none Require all denied </Directory> DocumentRoot "c:/server/htdocs" <Directory "c:/server/htdocs"> Options FollowSymLinks AllowOverride All Allow from all </Directory> 

Here is the entire httpd.conf file (maybe something is missing) - http://ideone.com/e.js/BhU287

Moreover, if the .htaccess file is empty, then everything works. But if you write something, for example, disable the cache, it gives "Internal Server Error"

 <filesMatch "\.(html|htm|js|css|php)$"> FileETag None Header unset ETag Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" Header set Pragma "no-cache" Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT" </filesMatch> 

How to be? What is wrong doing?

    2 answers 2

    Try to uncomment

     #LoadModule headers_module modules/mod_headers.so 

    as the Header command from the mod_headers module.

      In the full configuration, the .htaccess file name is missing. That is, the configuration does not know which file to access.

      Add a line below:

       AccessFileName .htaccess