Apache basic settings and garbled solution
one. Apache basic settings
1, Apache's core configuration file name is "httpd.conf", which is stored in the path "X: Apache2conf" directory. Open it with Notepad, modify it and then save it to achieve the purpose of configuring the Apache server.
2, because the configuration file "httpd.conf" determines the use of the entire Apahce server, so be careful for its modification! It is strongly recommended that you do a good job of backing up multiple backups to prevent errors! If you really forgot to back up, the system also prepared for you a backup file named "httpd.default.conf", it is your initial installation of Apache system automatically do a good job after the "httpd.conf" backup. You can remove ".default" to use.
3, change the home page path Apache homepages by default stored in the "X: Apachehtdocs" directory, if you want to change to "E: mywebddj88" directory of your own home page file, then use Notepad to open the "X: Apacheconf" directory Under the "httpd.conf" file, use the "Find" function in the "Edit" menu to find "DocumentRoot" x: / Apache / htdocs "" one, and then the quotation marks in the "X: / Apache / htdocs" Into "E: / myweb / ddj88".
4, change the default home page file name, Apache default home page has only one "index.html", if you are not, find the "DirectoryIndex index.html" line, here is the default file called! After "index.html" add your "index.htm" and other types, each file type must be separated by a space, and then save.
5, restart the Apache program, find the "Apache httpd Server" component in the "Start" menu "Programs", and then under the "Control Apache Server" in the "Restart" re-run the Apache HTTP service.
6, in your browser, enter "http: // localhost" or "http://127.0.0.1" Try it, ha, can you see your website? Hey, found in English can show that Chinese is garbled, when IE toolbar view -> encoding set to Simplified Chinese, Chinese can be displayed normally, but click connect, the other pages are still garbled, turn off IE, restart IE and found Is also garbled, how to do?
Second, Apache 2.0.47 garbled solution
The reason is very simple, because Apache its default encoding is Western European encoding, as long as you find "AddDefaultCharset ISO-8859-1" in "httpd.conf" Modify it to "AddDefaultCharset GB2312", save and restart Apache Try again, may Some friends have been resolved, but there are still a lot of friends website is still garbled, including me, what is the reason, there are also introduced online to change it to "AddDefaultCharset off", may not necessarily in your site Workable, the real problem is that it is caused by the web authoring software, if you are using Macromedia's Dreamweaver series software, due to its encoding "gb2312", so there will be garbled, so you just as long as you Web page code to find "", the "gb2312" to "GB2312" And then save the page, try again, OK!