You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Alex Guryanow <ga...@nlr.ru> on 2003/08/08 16:29:43 UTC

[users@httpd] BrowserMatch in .htaccess does not work in 1.3.28

Hi,

I need to downgrade protocol to version 1.0 only for files in specific
directory. I put the following directive into .htaccess file in this
specific directory

BrowserMatch ".*" downgrade-1.0 force-response-1.0

But this does not work - I receive response "HTTP/1.1 200 OK" for
files in this catalog. I have searched through mailinglist archive and
found two threads on this subject. One was with patch, but I think it
is already in current source-tree. The other was in German and it
seems that advices written there do not work too.

Here is my setup.

part of httpd.conf:

ScriptAlias "/cgi-bin/" "/opt/apache3/cgi-bin/"
<Directory />
    Options FollowSymLinks
    AllowOverride All
</Directory>

the file .htaccess from /opt/apache3/cgi-bin:

BrowserMatch ".*" downgrade-1.0 force-response-1.0

Here is response (headers and end of body) of server to request for /cgi-bin/printenv

HTTP/1.1 200 OK
Date: Fri, 08 Aug 2003 14:19:20 GMT
Server: Apache/1.3.28 (Unix)
Connection: close
Transfer-Encoding: chunked
Content-Type: text/plain


...
SERVER_SIGNATURE="<ADDRESS>Apache/1.3.28 Server at www Port 90</ADDRESS>\n"
SERVER_SOFTWARE="Apache/1.3.28 (Unix)"
TZ="Europe/Moscow"
downgrade_1_0="1"
force_response_1_0="1"

As you can see there is 1.1 version and force_response_1_0="1" at the
same time.

What do I wrong? Or what should I read to properly use BrowserMatch in
.htaccess. Putting BrowserMatch inside <Directory>...</Directory> (or
<Location>) does not work too. As well as using SetEnv or SetEnfIf.


Here are details of software I'm using:


Solaris 2.8 on SPARC
Apache 1.3.28
Server compiled with....
 -D HAVE_MMAP
 -D USE_MMAP_SCOREBOARD
 -D USE_MMAP_FILES
 -D HAVE_FCNTL_SERIALIZED_ACCEPT
 -D HAVE_SYSVSEM_SERIALIZED_ACCEPT
 -D HAVE_PTHREAD_SERIALIZED_ACCEPT
 -D DYNAMIC_MODULE_LIMIT=64
 -D HARD_SERVER_LIMIT=256
 -D HTTPD_ROOT="/opt/apache3"
 -D SUEXEC_BIN="/opt/apache3/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/httpd.scoreboard"
 -D DEFAULT_LOCKFILE="logs/httpd.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
 -D ACCESS_CONFIG_FILE="conf/access.conf"
 -D RESOURCE_CONFIG_FILE="conf/srm.conf"

Compiled-in modules:
----------------------------
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_info.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_access.c
  mod_auth.c
  mod_so.c
  mod_setenvif.c


Best regards,
Alex



---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org