ISPConfig, Apache, encodings and charsets problem...
This is my experience with the above issue. I want to discuss it here so as to enhance my configuration, and to find any possible bugs in ISPConfig, understanding better its logic.
1) First of all I have set the following options in /home/admispconfig/ispconfig/lib/config.inc.php because I use the greek translation of ISPConfig:
2) When I create a new website, the default ISPConfig's index.html is being copied in the websites dir. However, this page (which is also in greek because of the translation I use I suppose) does not contain any greek specific encoding code inside. This has a strange effect in IE6: It does not display anything at all (white page) when you try to access the site - even if you force the browser to use the ISO-8859-7 charset manually. FF2 on the other side, displays the page but in UTF-8 (so you can't read the content at all) and if you force it to use the greek charset, the page displays properly.
I have found these pages in /root/ispconfig/isp/* and added the following code to all of them (just before the </title> tag):
Things change if I add the following directive as an extra Apache parameter in ISPConfig for the specific website:
So please tell me what to do and how to configure this thing so as to use ONLY iso-8859-7 all the time and collaborate with the browsers just fine?
The solution to add each time manually directives for the Apache is not practical... There must be a way...
Thank you all in advance,
Ok it seems I have found a quick way to solve all of these problems. For the records, I note it down here:
Add the following global directive to /etc/httpd/conf/httpd.conf (for the global Apache) and to /root/ispconfig/httpd/conf/httpd.conf (for ISPConfig's Apache to port 81).
However what I haven't tested yet, is if an html document can override this setting (either with a metatag inside the html or with another directive in .htaccess or in ISPConfig's specific Apache options). If anyone knows, please share.
Thank you all for reading.
|All times are GMT +2. The time now is 05:24.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.