RE: [users@httpd] ErrorDocument Question

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

 



I know you can set it up so it will automatically select the correct
language from a selection of something like this:
	/foo/bar.html.en 
	/foo/bar.html.fr
	/foo/bar.html.es
I want to do the same thing but specify the language in a folder in the
path and not the file name at the end, such as:
	/foo/bar_en/foobar.html
	/foo/bar_fr/foobar.thml
	/foo/bar_es/foobar.html
I've tried looking through the error document and content negotiation
documentation, but I haven't seen anything that says this isn't possible
or that it is possible and how to do it.  Am I blind?  Does anyone know
if it is even possible?  If it is, any pointers would be greatly
appreciated.  Thanks in advance.
,
Josh.

> -----Original Message-----
> From: jslive@xxxxxxxxx [mailto:jslive@xxxxxxxxx] On Behalf Of 
> Joshua Slive
> Sent: Friday, June 16, 2006 3:58 PM
> To: users@xxxxxxxxxxxxxxxx
> Subject: Re: [users@httpd] ErrorDocument Question
> 
> On 6/16/06, Fenlason, Josh <jfenlason@xxxxxxx> wrote:
> >
> >
> > Is there anyway to configure ErrorDocument to work with a path that 
> > for the user's locale?  I want to do something like the following:
> > ErrorDocument 401
> > /path/to/file/<locale>/rest/of/path/to/errorPage.html
> > Is there a way to accomplish this with ErrorDocument?  Is 
> there a way 
> > to do it with any other modules or config directives?  Thanks.
> 
> What do you mean by locale?  Do you mean something from the 
> Accept-Language HTTP header?  If so, you want content-negotiation.
> There is an extensive and usable example of 
> content-negotiated error docs in the config of every recent 
> version of apache httpd (2.x).
> 
> Joshua.
> 
> ---------------------------------------------------------------------
> 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
> 

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