PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > [bug] Saving .htaccess using uft-8 returns an "Internal Server Error"
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

[bug] Saving .htaccess using uft-8 returns an "Internal Server Error"

Réponse
 
LinkBack Outils de la discussion
Vieux 02/02/2007, 18h19   #1
Charles
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut [bug] Saving .htaccess using uft-8 returns an "Internal Server Error"

If you save the .htaccess file using ISO-8859-1 or Windows 1252
encodings, it works fine. But if you use utf-8 recommended and
universal encoding, Apache triggers an "Internal Server Error". I have
tried several hours creating some rules, and when I found out nothing
worked, all of the sudden I saw Apache did not accept utf-8. Most
operating systems and applications are migrating to utf-8 to support
international languages, so it would be a good thing to work properly
with utf-8.

  Réponse avec citation
Vieux 02/02/2007, 19h08   #2
Davide Bianchi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [bug] Saving .htaccess using uft-8 returns an "Internal Server Error"

On 2007-02-02, Charles <landemaine@gmail.com> wrote:
> If you save the .htaccess file using ISO-8859-1 or Windows 1252
> encodings, it works fine. But if you use utf-8 recommended and


Don't post this here, maybe file a bug report in the bugzilla db
of apache.

Davide

--
Another name for a Windows tutorial is "crash course".
  Réponse avec citation
Vieux 02/02/2007, 19h16   #3
cyrusthevirus
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [bug] Saving .htaccess using uft-8 returns an "Internal ServerError"

Il 02/02/2007 19:19, Charles dixit:
> If you save the .htaccess file using ISO-8859-1 or Windows 1252
> encodings, it works fine. But if you use utf-8 recommended and
> universal encoding, Apache triggers an "Internal Server Error".


My 1.3.37 don't show this problem, even inserting multibyte characters
just like in these two snippets (saved as UTF-8):

Order Deny,Allow
Deny from liberté.egalité.fraternité.com
Allow from 10.1.1.2

Order Deny,Allow
Deny from (جريدة الأهرام - Ø§Ù„ØµÙØØ© الأو(¹
Allow from 10.1.1.2

I guess there could be just an "offending" character, somewhere: maybe
you can try to insulate the problem by splitting the .htaccess in
smaller pieces.

I got an Internal Server Error using // instead # to comment away a
line, if this could be useful to someone.

Cyrus (the /perplexed/ virus)


(¹) Got it googling for "Al Ahram", the Egyptian newspaper.

--
I love to be mailed just by smart people:
perl -we 'print "\12\142\145\162\156\141\155\141\100\151".
"\164\167\145\142\56\151\164\12\12";'
Spammers scratch here with a diamond to find my address:
|||||||||||||||||||||||||||||||||||||||||||||||
  Réponse avec citation
Vieux 03/02/2007, 02h42   #4
shimmyshack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Saving .htaccess using uft-8 returns an "Internal Server Error"

On 2 Feb, 19:16, cyrusthevirus <r...@127.0.0.1> wrote:
> Il 02/02/2007 19:19, Charles dixit:
>
> > If you save the .htaccess file using ISO-8859-1 or Windows 1252
> > encodings, it works fine. But if you use utf-8 recommended and
> > universal encoding, Apache triggers an "Internal Server Error".

>
> My 1.3.37 don't show this problem, even inserting multibyte characters
> just like in these two snippets (saved as UTF-8):
>
> Order Deny,Allow
> Deny from liberté.egalité.fraternité.com
> Allow from 10.1.1.2
>
> Order Deny,Allow
> Deny from (جريدة الأهرام - Ø§Ù„ØµÙØØ© الأو (¹
> Allow from 10.1.1.2
>
> I guess there could be just an "offending" character, somewhere: maybe
> you can try to insulate the problem by splitting the .htaccess in
> smaller pieces.
>
> I got an Internal Server Error using // instead # to comment away a
> line, if this could be useful to someone.
>
> Cyrus (the /perplexed/ virus)
>
> (¹) Got it googling for "Al Ahram", the Egyptian newspaper.
>
> --
> I love to be mailed just by smart people:
> perl -we 'print "\12\142\145\162\156\141\155\141\100\151".
> "\164\167\145\142\56\151\164\12\12";'
> Spammers scratch here with a diamond to find my address:
> |||||||||||||||||||||||||||||||||||||||||||||||


are you sure its not just the /way/ you are saving the utf-8 doc.
The so called Byte-Order-Mark (BOM) often causes these kinds of
issues, depending on the editor you were using it might not have shown
up, but if you goto the end of the doc and delete all lines but the
first, then starting at the end of the line hold the delete key down
until it gets to the start of the doc and save, you will see the file
is of length 1byte, whereas pressing alt+A and then delete and save
will result in 0bytes.
Its this BOM that trips stuff up, whereas apache should be able to
cope with utf-8.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h00.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12406 seconds with 12 queries