logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Charset ISO-8859-1 not supported. Consider aliasing it
Author
MHuynh



Joined: 27 Jan 2012
Posts: 3
Location: Houston, TX

PostPosted: Fri 27 Jan '12 22:20    Post subject: Charset ISO-8859-1 not supported. Consider aliasing it Reply with quote

Hi,

I just got assigned to this project (not by choice, it means that I don't have much experience Embarassed
Set up Apache reverse proxy server to allow Internet users to access corporate internal private website.

I set up the test environment in the lab, so far it is working as I expected (in my level, not as an Apache expert). All links are working, if I changed the stylesheet, it replected the change, all the characters displayed correctly....

The environment:
Server Windows 2003, IIS website, IE6
Apache httpd-2.2.21-win32-x86-openssl-0.9.8r, mod_proxy_html-3.1.2-win32, libxml2-2.7.8.win32.

To reproduce the error, I created a very simple Webpage with external CSS:

Default.html---------
<!DOCTYPE html PUBLIC "-//W3C//DTD Xhtml 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Apache Test</title>
<link href="index.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>This is heading 1</h1>
<p>This is an ordinary paragraph. Notice that this text is red. The default text-color for a page is defined in the body selector.</p>
<p class="ex">This is a paragraph with class="ex". This text is blue.</p>
<p>激光, 這兩個字是甚麼意思</p>
<p>&theta;</p>
<p>θ</p>
</body>
</html>

Index.css----------
@charset "UTF-8";
font-family: Arial, sans-serif;
body {color:black;}
h1 {color:Red;}
p.ex {color:rgb(0,0,255);}

httpd.config-------------
...........
LoadFile D:/Apache/Apache2.2/bin/iconv.dll
LoadFile D:/Apache/Apache2.2/bin/zlib1.dll
LoadFile D:/Apache/Apache2.2/bin/libxml2.dll
LoadModule xml2enc_module modules/mod_xml2enc.so
LoadModule proxy_html_module modules/mod_proxy_html.so

<VirtualHost *:80>
DocumentRoot "C:/Inetpub/wwwroot"
<Directory "C:/Inetpub/wwwroot">
#Options None
Options +FollowSymLinks
Options All
RewriteEngine On
RewriteCond %{REQUEST_URI} !www.apachetest.com [NC]
RewriteRule ^$ root [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule (.+) http://%{HTTP_HOST}/$1/ [R=301,L]
AllowOverride None
Order allow,deny
Allow from all
</Directory>

RewriteEngine On
RewriteMap lc int:tolower
RewriteCond %{REQUEST_URI} [A-Z]
RewriteRule (.*) ${lc:$1} [R=301,L]

ServerName gw3mhuynh.test.hougwlabaccts.lab.com
ServerAdmin admin@test.hougwlabaccts.lab.com
CustomLog "|D:/Apache/Apache2.2/bin/rotatelogs.exe D:/Apache/Apache2.2/logs/site1/access_%Y_%m_%d.log 86400" combinedio
</Virtualhost>

<Proxy *>
Order deny,allow
Allow from All
</Proxy>

ProxyHTMLLogVerbose On
LogLevel Debug
ProxyHTMLEnable On
ProxyHTMLExtended On
ProxyHTMLMeta On
ProxyHTMLStripComments Off 60

ProxyRequests Off
ProxyPreserveHost On
ProxyPass /test/ http://DL580G1.test.hougwlabaccts.lab.com/apache/test/
ProxyHTMLURLMap http://DL580G1.test.hougwlabaccts.lab.com /test

<Location /test/>
ProxyPassReverse /
ProxyHTMLEnable On
SetOutputFilter proxy-html
ProxyHTMLURLMap / /test/
RequestHeader unset Accept-Encoding
</Location>

Error.log--------------------
Starting the Apache2.2 service
The Apache2.2 service is running.
worker http://dl580g1.test.hougwlabaccts.lab.com/ already used by another worker
Fri Jan 27 14:00:06 2012] [warn] pid file D:/Apache/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Jan 27 14:00:07 2012] [notice] Apache/2.2.21 (Win32) proxy_html/3.1.2 configured -- resuming normal operations
[Fri Jan 27 14:00:07 2012] [notice] Server built: Sep 16 2011 12:06:30
[Fri Jan 27 14:00:07 2012] [notice] Parent: Created child process 3332
[Fri Jan 27 14:00:07 2012] [debug] mpm_winnt.c(477): Parent: Sent the scoreboard to the child
Fri Jan 27 14:00:07 2012] [notice] Child 3332: Child process is running
[Fri Jan 27 14:00:07 2012] [info] Parent: Duplicating socket 1288 and sending it to child process 3332
[Fri Jan 27 14:00:07 2012] [info] Parent: Duplicating socket 1280 and sending it to child process 3332
[Fri Jan 27 14:00:07 2012] [debug] mpm_winnt.c(595): Parent: Sent 2 listeners to child 3332
[Fri Jan 27 14:00:07 2012] [debug] mpm_winnt.c(398): Child 3332: Retrieved our scoreboard from the parent.
[Fri Jan 27 14:00:07 2012] [debug] mpm_winnt.c(554): Child 3332: retrieved 2 listeners from parent
[Fri Jan 27 14:00:07 2012] [debug] proxy_util.c(1818): proxy: grabbed scoreboard slot 0 in child 3332 for worker http://dl580g1.test.hougwlabaccts.lab.com/
[Fri Jan 27 14:00:07 2012] [debug] proxy_util.c(1914): proxy: initialized worker 0 in child 3332 for (dl580g1.test.hougwlabaccts.lab.com) min=0 max=64 smax=64
[Fri Jan 27 14:00:07 2012] [debug] proxy_util.c(1818): proxy: grabbed scoreboard slot 1 in child 3332 for worker proxy:reverse
[Fri Jan 27 14:00:07 2012] [debug] proxy_util.c(1914): proxy: initialized worker 1 in child 3332 for (*) min=0 max=64 smax=64
[Fri Jan 27 14:00:07 2012] [notice] Child 3332: Acquired the start mutex.
[Fri Jan 27 14:00:07 2012] [notice] Child 3332: Starting 64 worker threads.
[Fri Jan 27 14:00:07 2012] [notice] Child 3332: Starting thread to listen on port 8080.
[Fri Jan 27 14:00:07 2012] [notice] Child 3332: Starting thread to listen on port 80.
[Fri Jan 27 14:00:21 2012] [error] [client 127.0.0.1] Charset ISO-8859-1 not supported. Consider aliasing it?, referer: http://www.apachetest.com/test/
[Fri Jan 27 14:00:21 2012] [warn] [client 127.0.0.1] No usable charset information; using configuration default, referer: http://www.apachetest.com/test/

What I want to do is get rid of the error "Charset ISO-8859-1 not supported. Consider aliasing it" and "No usable charset information; using configuration default".

I hope someone can help me and tell me what I did wrong and forgive me if I waste your time.

Thanks and best regards.
MHuynh.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 01 Feb '12 17:35    Post subject: Reply with quote

How did you solve the problem?
Back to top
MHuynh



Joined: 27 Jan 2012
Posts: 3
Location: Houston, TX

PostPosted: Thu 02 Feb '12 16:50    Post subject: Charset ISO-8859-1 not supported. Consider aliasing it Reply with quote

Sorry....
Not yet, I have not had time to work on that yet.

Thank and best regards.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Fri 03 Feb '12 10:25    Post subject: Reply with quote

Well that can be done with

ProxyHTMLCharsetAlias charset alias [alias ...]

See the docs: http://apache.webthing.com/mod_proxy_html30/config.html

Hope that helps
Back to top
MHuynh



Joined: 27 Jan 2012
Posts: 3
Location: Houston, TX

PostPosted: Tue 07 Feb '12 21:19    Post subject: Post subject: Charset ISO-8859-1 not supported. Consider ali Reply with quote

Hi James,

Sorry, I've been working on another problem.

Look like mod_proxy_html-3.1.2 is no longer support
ProxyHTMLCharsetAlias, it is handled by mod_xml2enc.so.

Thank and best regards.
Back to top


Reply to topic   Topic: Charset ISO-8859-1 not supported. Consider aliasing it View previous topic :: View next topic
Post new topic   Forum Index -> Apache