httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9710] - AddDefaulCharset Directive overwrites original Charset of proxied pages
Date Tue, 02 Sep 2003 19:42:20 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9710>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9710

AddDefaulCharset Directive overwrites original Charset of proxied pages





------- Additional Comments From boki200@hotmail.com  2003-09-02 19:42 -------
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9710

Although you have closed this bug I have experienced similar problems. After
enabling proxy on my Apache 2.0.47 on Win2000 (relevant loaded modules:
mod_cache, mod_disk_cache, mod_proxy, mod_proxy_http, mod_proxy_ftp) and using
the following configuration:
<IfModule mod_proxy.c>
	Listen 3128
	<IfModule mod_cache.c>	
		<IfModule mod_disk_cache.c>
			CacheRoot "C:\cygwin\var\cache\proxy"
			CacheSize 204800
			CacheEnable disk /
			#CacheDirLevels 5
			#CacheDirLength 10
			CacheGcInterval 24
			CacheMinFileSize 64
		</IfModule>
	</IfModule>
	<VirtualHost *:3128>
		ProxyRequests On
		ProxyVia On
		<Proxy *:3128>
			Order deny,allow
			Allow from 192.168.0.0/24
		</Proxy>
	</VirtualHost>
</IfModule>


I have come across the same problem. More specifically: Google will send out all
the pages in UTF-8 and proxy will return the page with Content-type set to:
text/html; charset=ISO-8859-1

This will happen to all the pages, no matter if they are cached (mod_cache
disabled) or not - any charset will be silently converted to ISO-8859-1.

After commenting out AddDefaultCharset directive I have found the behaviour of
the proxy module to be as expected.

I have not tried disabling other modules.

All loaded modules:
LoadModule access_module modules/mod_access.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_module modules/mod_auth.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule cache_module modules/mod_cache.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule imap_module modules/mod_imap.so
LoadModule include_module modules/mod_include.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule userdir_module modules/mod_userdir.so

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message