httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: [users@httpd] language-based redirection
Date Thu, 07 Feb 2008 16:20:55 GMT
On Thu, 7 Feb 2008 10:33:44 +0100
"Zbigniew Szalbot" <zszalbot@gmail.com> wrote:


> Now I am putting in the index.html.po.iso8859-2 file the following
> code: <META http-equiv="Content-Type" content="text/html;
> charset=iso-8859-2"> <meta http-equiv="Location"
> content="http://domain.tld/test/pl/index.php"> <meta
> http-equiv="Status" content="301 Now where did I leave that URL">

What's that supposed to do?

You need mod_asis to be your handler for that file.  Then you
set the HTTP headers as in your previous message to the list
(in fact, CGI rules apply to mod_asis).

> $ cat /usr/local/etc/apache2/httpd.conf |grep "asis"

Alert .. useless use of cat awards (google it if you need to -
but not important).

> LoadModule asis_module libexec/apache2/mod_asis.so
> AddHandler send-as-is asis

That'll set mod_asis as handler for .asis files.

So you've got two things wrong:
 - mod_asis isn't set as handler for the file in question
 - the file contains <meta> crap instead of headers.

Since you probably don't want to activate mod_asis on the rest
of your server, why not rename your negotiated language files
from .html to .asis?

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

---------------------------------------------------------------------
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


Mime
View raw message