Re: language-based redirection

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

 



On Thu, 7 Feb 2008 10:33:44 +0100
"Zbigniew Szalbot" <zszalbot@xxxxxxxxx> 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@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