Re: htaccess and httpd.conf precedence (mod_deflate)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Eric,

> two pieces of trivia that might fill in some blanks:
> 
> 1) SetEnv runs much later than SetEnvIf/BrowserMatch no matter what
> context you place it in
> 
> 2)  somewhat counterintuitively, <Location has precedence over
> <Directory  -- perhaps you could wrap the canned deflate stuff in a
> <Directory> entry at a higher then your htaccess so the htaccess is
> processed second?

Thanks a lot! Actually these two pieces of trivia and http://httpd.apache.org/docs/2.0/sections.html#mergin filled in all the blanks. I've added a conditional override in the httpd-deflate.conf:

SetEnvIf override-gzip-in-httpd-deflate-conf 1 no-gzip dont-vary

And used that in my .htaccess file:

SetEnvIf Request_URI download_file\.php$ no-gzip dont-vary override-gzip-in-httpd-deflate-conf

Not an ideal solution, since it might not survive a site migration but at least the fix is kinda explicit...

-- 

Joost Schuttelaar
The Hague, NL


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux