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

Re: hebrew in apache with debian



On Tue, 27 Mar 2001, Valdemar Lemche wrote:

> how do I make my apache 1.3.9 on my debian 2.2 show hebrew pages

That s not related to apache. Basically you write html pages with proper
charset settings.

But: I'm not sure if this is what you have in mind, but if you want is to
be able to send "hebrew" pages if the browser asks for the language
hebrew, then see the document about content negotiation in apache's docs. 

>From my apache's config:
---------
# I figure you have those by default (I didn't need to add them)
LoadModule negotiation_module modules/mod_negotiation.so
AddModule mod_negotiation.c

# define an extention for hebrew documents:
AddLanguage he .he

# I believe this one sets the default when no language is set by the
# browser, right?
LanguagePriority en he
----------

Now all you have to do is replace index.html with index.html.he and
index.html.en , and you have two different pages for sepeare contents.

But I decided to go a little farther. I didn't like having files called
foo.html.he . I like foo.he.html better, for a number of reasons.

This makes life a bit more difficult. For instance, I had to change the
DirectoryIndex line:

----------
DirectoryIndex index index.shtml index.html index.htm index.cgi  index.php
index.php3
----------
(I added "index" in the beginning. apache adds .he and later .html )

And one last thing: I wanted a seperate 404 page for different languages:
----------
ErrorDocument 404 /missing
----------

Once again, apache adds the extentions on its own. The downside is that I
should remember not to create a directory called "missing" :( 

-- 
Tzafrir Cohen
mailto:tzafrir@technion.ac.il
http://www.technion.ac.il/~tzafrir



=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il